summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome/cros_ec_dev.c
diff options
context:
space:
mode:
authorClinton Sprain <clintonsprain@gmail.com>2016-05-11 21:05:35 +0300
committerOlof Johansson <olof@lixom.net>2016-05-11 21:55:47 +0300
commitd940f3065c120af233d36933e94ebb577a695b44 (patch)
treee7a9edbc0fb5cea521998ab8c2cbc0d331f4cf16 /drivers/platform/chrome/cros_ec_dev.c
parent5d749d0bbe811c10d9048cde6dfebc761713abfd (diff)
downloadlinux-d940f3065c120af233d36933e94ebb577a695b44.tar.xz
platform/chrome: cros_ec_lightbar - use name instead of ID to hide lightbar attributes
Lightbar attributes are hidden if the ID of the device is not 0 (the assumption being that 0 = cros_ec = might have a lightbar, 1 = cros_pd = hide); however, sometimes these devices get IDs 1 and 2 (or something else) instead of IDs 0 and 1. This prevents the lightbar attributes from appearing when they should. Proposed change is to instead check whether the name assigned to the device is CROS_EC_DEV_NAME (true for cros_ec, false for cros_pd). Signed-off-by: Clinton Sprain <clintonsprain@gmail.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/platform/chrome/cros_ec_dev.c')
0 files changed, 0 insertions, 0 deletions