]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: bcm: Move directives for the preprocessor statement to enum value in led_con...
authorKevin McKinney <klmckinney1@gmail.com>
Mon, 13 Feb 2012 03:24:53 +0000 (22:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2012 04:16:14 +0000 (20:16 -0800)
commit6ff327804cae648cd2634e14b7d032ccd0ab315d
treede66e82cf89d58bd4a99396ebb84204254d55502
parentf3a6d2f8a1fb51a6b670a3e76f550c825a9c538a
Staging: bcm: Move directives for the preprocessor statement to enum value in led_control.h

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:

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]

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/led_control.h