All of lore.kernel.org
 help / color / mirror / Atom feed
From: ryan@bluewatersys.com (Ryan Mallon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ep93xx: add support Vision EP9307 SoM
Date: Tue, 29 Mar 2011 08:48:54 +1300	[thread overview]
Message-ID: <4D90E626.6020404@bluewatersys.com> (raw)
In-Reply-To: <0D753D10438DA54287A00B027084269764D194F007@AUSP01VMBX24.collaborationhost.net>

On 03/29/2011 08:46 AM, H Hartley Sweeten wrote:
> On Monday, March 28, 2011 12:30 PM, Ryan Mallon wrote:
>> On 03/29/2011 07:27 AM, H Hartley Sweeten wrote:
>>> Add support for Vision Engraving Systems EP9307 based SoM.
>>>
>>> Signed-off-by: Hartley Sweeten <hartleys@visionengravers.com>
>>> Cc: Ryan Mallon <ryan@bluewatersys.com>
>>
>> Hi Hartley,
>>
>> Looks mostly good. Couple of minor comments below.
> 
>>> +static void vision_lcd_blank(int blank_mode, struct fb_info *info)
>>> +{
>>> +	if (blank_mode)
>>> +		gpio_set_value(VISION_LCD_ENABLE, 0);
>>> +	else
>>> +		gpio_set_value(VISION_LCD_ENABLE, 1);
>>
>> This can just be:
>>
>> 	gpio_set_value(VISION_LCD_ENABLE, blank_mode ^ 1);
> 
> That does kind of hide the meaning of blank_mode.  Also, it appears blank_mode
> is actually an enum not 0 or 1.  Do you still feel your way is better?

Ah, okay. I just suggest the above as being slightly more concise. If
you think that it is more clear/correct as is then leave it.

> 
>>> +};
>>> +
>>> +static struct i2c_board_info vision_i2c_info[] __initdata = {
>>> +	{
>>> +		I2C_BOARD_INFO("isl1208", 0x6f),
>>> +		.irq		= IRQ_EP93XX_EXT1,
>>> +	}, {
>>
>> Nitpick - opening braces should go on a new line.
> 
> For array definitions like this it appears the '}, {' is more common.

Ok.

~Ryan


-- 
Bluewater Systems Ltd - ARM Technology Solution Centre

Ryan Mallon         		5 Amuri Park, 404 Barbadoes St
ryan at bluewatersys.com         	PO Box 13 889, Christchurch 8013
http://www.bluewatersys.com	New Zealand
Phone: +64 3 3779127		Freecall: Australia 1800 148 751
Fax:   +64 3 3779135			  USA 1800 261 2934

  reply	other threads:[~2011-03-28 19:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-28 18:27 [PATCH] ep93xx: add support Vision EP9307 SoM H Hartley Sweeten
2011-03-28 19:30 ` Ryan Mallon
2011-03-28 19:46   ` H Hartley Sweeten
2011-03-28 19:48     ` Ryan Mallon [this message]
2011-03-28 20:22       ` H Hartley Sweeten
2011-03-28 20:27         ` Ryan Mallon
2011-03-29 12:56   ` Sergei Shtylyov

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=4D90E626.6020404@bluewatersys.com \
    --to=ryan@bluewatersys.com \
    --cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.