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


Groups > linux.kernel > #1441018 > unrolled thread

Re: [PATCH 23/27] HID: wacom: leds: use the ledclass instead of custom made sysfs files

Started byPeter Hutterer <peter.hutterer@who-t.net>
First post2016-07-12 03:50 +0200
Last post2016-07-12 03:50 +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 23/27] HID: wacom: leds: use the ledclass instead of  custom made sysfs files Peter Hutterer <peter.hutterer@who-t.net> - 2016-07-12 03:50 +0200

#1441018 — Re: [PATCH 23/27] HID: wacom: leds: use the ledclass instead of custom made sysfs files

FromPeter Hutterer <peter.hutterer@who-t.net>
Date2016-07-12 03:50 +0200
SubjectRe: [PATCH 23/27] HID: wacom: leds: use the ledclass instead of custom made sysfs files
Message-ID<rTUZI-6B4-13@gated-at.bofh.it>
On Tue, Jul 05, 2016 at 04:39:19PM +0200, Benjamin Tissoires wrote:
> The now obsolete sysfs files for LEDs and EKRemote are kept for backward
> compatibility.
> Both the EKR (read-only) and the regular Cintiqs and Intuos are now
> sharing the same led API.
> 
> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
> ---
>  Documentation/ABI/testing/sysfs-driver-wacom |   5 +
>  drivers/hid/wacom.h                          |  19 +++
>  drivers/hid/wacom_sys.c                      | 191 +++++++++++++++++++++++++--
>  3 files changed, 205 insertions(+), 10 deletions(-)
> 
[...]

> +static int wacom_led_register_one(struct device *dev, struct wacom *wacom,
> +				  struct wacom_led *led, unsigned int group,
> +				  unsigned int id, bool read_only)
> +{
> +	int error;
> +	char *name;
> +
> +	name = devm_kasprintf(dev, GFP_KERNEL,
> +			      "%s::wacom-led_%d.%d",
> +			      dev_name(dev),
> +			      group,
> +			      id);

let's use something other than the - and _ mix please. I'd prefer
wacom-led-0.1 but I'll also accept wacom_led_0.1, the mix is a bit of an
eyesore.

also, arguably you don't need the "led" bit, see e.g.  "input3::capslock" so
even "input123::wacom-0.1" would be ok too.

Cheers,
   Peter

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web