Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1399438 > unrolled thread

Re: [PATCH] platform/chrome: cros_ec_lightbar - use name instead of ID to hide lightbar attributes

Started byOlof Johansson <olof@lixom.net>
First post2016-05-11 21:10 +0200
Last post2016-05-11 21:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] platform/chrome: cros_ec_lightbar - use name instead of  ID to hide lightbar attributes Olof Johansson <olof@lixom.net> - 2016-05-11 21:10 +0200

#1399438 — Re: [PATCH] platform/chrome: cros_ec_lightbar - use name instead of ID to hide lightbar attributes

FromOlof Johansson <olof@lixom.net>
Date2016-05-11 21:10 +0200
SubjectRe: [PATCH] platform/chrome: cros_ec_lightbar - use name instead of ID to hide lightbar attributes
Message-ID<rxHGb-6be-31@gated-at.bofh.it>
On Tue, Mar 08, 2016 at 10:36:24PM -0600, Clinton Sprain wrote:
> 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>

Hm. I wonder why we need to check at all, given that the lightbar version check
is just going to fail later anyway.

Either way, applied with some manual fixups due to surrounding changes.
Apologies for the long delay here.


-Olof

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web