mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
powerpc/powernv: Fix mis-merge of OPAL support for LEDS driver
When I merged the OPAL support for the powernv LEDS driver I missed a
hunk.
This is slightly modified from the original patch, as the original added
code to opal-api.h which is not in the skiboot version, which is
discouraged.
Instead those values are moved into the driver, which is the only place
they are used.
Fixes: 8a8d91817a ("powerpc/powernv: Add OPAL interfaces for accessing and modifying system LED states")
Reviewed-by: Vasant Hegde <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
e72bb8a5a8
commit
5d53be7d8c
2 changed files with 15 additions and 3 deletions
|
|
@ -27,9 +27,9 @@ struct led_type_map {
|
|||
const char *desc;
|
||||
};
|
||||
static const struct led_type_map led_type_map[] = {
|
||||
{OPAL_SLOT_LED_TYPE_ID, POWERNV_LED_TYPE_IDENTIFY},
|
||||
{OPAL_SLOT_LED_TYPE_FAULT, POWERNV_LED_TYPE_FAULT},
|
||||
{OPAL_SLOT_LED_TYPE_ATTN, POWERNV_LED_TYPE_ATTENTION},
|
||||
{OPAL_SLOT_LED_TYPE_ID, "identify"},
|
||||
{OPAL_SLOT_LED_TYPE_FAULT, "fault"},
|
||||
{OPAL_SLOT_LED_TYPE_ATTN, "attention"},
|
||||
{-1, NULL},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue