[PATCH] Staging: bcm: Move directives for the preprocessor statement to enum value in led_control.h

Dan Carpenter dan.carpenter at oracle.com
Mon Feb 13 06:36:18 UTC 2012


On Sun, Feb 12, 2012 at 10:24:53PM -0500, Kevin McKinney wrote:
> DRIVER_HALT is a driver state that was originally
> defined as a #define statement. This patch moves
> it to the LedEvents type as an enumerated
> value for the purpose of removing a compile time warning.
> 

Normally you would cut and paste the warning into the commit
message.

drivers/staging/bcm/led_control.c: In function ‘LEDControlThread’:
drivers/staging/bcm/led_control.c:817:3: warning: case value ‘255’ not in enumerated type ‘LedEventInfo_t’ [-Wswitch]

regards,
dan carpenter

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20120213/dc2d4cb7/attachment.asc>


More information about the devel mailing list