From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wu Zhangjin Subject: Re: [PATCH v8 8/8] Loongson: YeeLoong: add input/hotkey driver Date: Tue, 08 Dec 2009 14:52:11 +0800 Message-ID: <1260255131.3315.25.camel@falcon.domain.org> References: <20091207064857.GG21451@core.coreip.homeip.net> Reply-To: wuzhangjin@gmail.com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=4DMXwcnf5DHuVLR0NDW43emnVxj4TE+CnE7lEzomZBo=; b=kuIx6krXo8y3FaouxSmR9NVGSmM1KSL/z12ldLkMlVG0lf56+KoXGADlirYGZ2cW1l VsB/gj1FsTY/L1OGKOaPT9SO5ewOzMDnSGx9QQy2BuwLFEte5tIZ6HiAaKEOvnFtSWED K87U0be3KGeStsyJZUw0kZBO25NYb5G4AMyxs= In-Reply-To: <20091207064857.GG21451@core.coreip.homeip.net> Sender: linux-laptop-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Dmitry Torokhov Cc: Ralf Baechle , akpm@linux-foundation.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , zhangfx@lemote.com, linux-laptop@vger.kernel.org, Stephen Rothwell , Pavel Machek Hi, Dmitry Torokhov I plan to send another revision of this patchset, Can I get your Acked-by: for this patch? Thanks! Wu Zhangjin On Sun, 2009-12-06 at 22:48 -0800, Dmitry Torokhov wrote: > Hi Wu, > > On Sun, Dec 06, 2009 at 03:01:48PM +0800, Wu Zhangjin wrote: > > + > > +#define EC_VER_LEN 64 > > + > > +static int black_screen_handler(int status) > > +{ > > + char *p, ec_ver[EC_VER_LEN]; > > + > > + p = strstr(loongson_cmdline, "EC_VER="); > > + if (!p) > > + memset(ec_ver, 0, EC_VER_LEN); > > + else { > > + strncpy(ec_ver, p, EC_VER_LEN); > > + p = strstr(ec_ver, " "); > > + if (p) > > + *p = '\0'; > > + } > > + > > Hmm, why do you copy and parse command lineinstead of using module > param and also doing it just once? > > > + /* Seems EC(>=PQ1D26) does this job for us, we can not do it again, > > + * otherwise, the brightness will not resume to the normal level! */ > > + if (strncasecmp(ec_ver, "EC_VER=PQ1D26", 64) < 0) > > + yeeloong_lcd_vo_set(status); > > + > > + return status; > > +} > > Thanks. >