mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Willy Tarreau <w@1wt.eu>
To: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Cc: Willy Tarreau <willy@meta-x.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] staging: panel: initialize lcd if lcd enabled
Date: Tue, 10 Feb 2015 18:53:12 +0100	[thread overview]
Message-ID: <20150210175312.GB9067@1wt.eu> (raw)
In-Reply-To: <1423569363-7354-2-git-send-email-sudipm.mukherjee@gmail.com>

On Tue, Feb 10, 2015 at 05:26:03PM +0530, Sudip Mukherjee wrote:
> initialiaze lcd parameters only if lcd is enabled.
> 
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>

One minor comment below (cosmetic), but after this it's OK.
Acked-by: Willy Tarreau <w@1wt.eu>

> +	if (lcd.enabled) {
> +		/*
> +		 * Init lcd struct with load-time values to preserve exact
> +		 * current functionality (at least for now).
> +		 */
> +		lcd.height = lcd_height;
> +		lcd.width = lcd_width;
> +		lcd.bwidth = lcd_bwidth;
> +		lcd.hwidth = lcd_hwidth;
> +		lcd.charset = lcd_charset;
> +		lcd.proto = lcd_proto;
> +		lcd.pins.e = lcd_e_pin;
> +		lcd.pins.rs = lcd_rs_pin;
> +		lcd.pins.rw = lcd_rw_pin;
> +		lcd.pins.cl = lcd_cl_pin;
> +		lcd.pins.da = lcd_da_pin;
> +		lcd.pins.bl = lcd_bl_pin;
> +
> +	/* Leave it for now, just in case */
^^^^^^^^^^^^^^^^^^^
Please fix indenting the comment here.

> +		lcd.esc_seq.len = -1;
> +	}
> +

Willy


  reply	other threads:[~2015-02-10 17:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-10 11:56 [PATCH 1/2] staging: panel: register driver after checking device Sudip Mukherjee
2015-02-10 11:56 ` [PATCH 2/2] staging: panel: initialize lcd if lcd enabled Sudip Mukherjee
2015-02-10 17:53   ` Willy Tarreau [this message]
2015-02-10 17:51 ` [PATCH 1/2] staging: panel: register driver after checking device Willy Tarreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150210175312.GB9067@1wt.eu \
    --to=w@1wt.eu \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sudipm.mukherjee@gmail.com \
    --cc=willy@meta-x.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®