mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH 35/36] hid: roccat: convert class code to use bin_attrs in groups
@ 2013-08-15 16:03 Stefan Achatz
  2013-08-15 16:40 ` Greg Kroah-Hartman
  2013-08-20  5:28 ` Aw: " screamingfist
  0 siblings, 2 replies; 5+ messages in thread
From: Stefan Achatz @ 2013-08-15 16:03 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Kosina, linux-input, linux-kernel

Hello Greg,
looking through the patch I found the following:



In hid-roccat-kone.c, PROFILE_ATTR macro:
The line
 .private = &profile_numbers[number],
should read
 .private = &profile_numbers[number-1],



Regarding the compiler warning about unused pyra_sysfs_write_settings:
The attribute is indeed readwrite, but the code to write is not standard
code. The read function was created with the PYRA_SYSFS_R macro and the
write function was written manually. Used were both by
PYRA_BIN_ATTRIBUTE_RW.
In this case I would keep the PYRA_SYSFS_* macros standalone so that the
calling code looks like this:

PYRA_SYSFS_W(control, CONTROL);
PYRA_SYSFS_RW(info, INFO);
PYRA_SYSFS_RW(profile_settings, PROFILE_SETTINGS);
PYRA_SYSFS_RW(profile_buttons, PROFILE_BUTTONS);
PYRA_SYSFS_R(settings, SETTINGS);

PYRA_BIN_ATTRIBUTE_W(control, CONTROL);
PYRA_BIN_ATTRIBUTE_RW(info, INFO);
PYRA_BIN_ATTRIBUTE_RW(profile_settings, PROFILE_SETTINGS);
PYRA_BIN_ATTRIBUTE_RW(profile_buttons, PROFILE_BUTTONS);
PYRA_BIN_ATTRIBUTE_RW(settings, SETTINGS);



Another thing: Why does nobody (besides me) use the get_maintainer.pl
script, so I have to search manually for patches regarding my code?

Have a nice day,
Stefan


^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 00/36] remove dev_attrs usage in 'struct class'
@ 2013-07-24 22:05 Greg Kroah-Hartman
  2013-07-24 22:05 ` [PATCH 35/36] hid: roccat: convert class code to use bin_attrs in groups Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2013-07-24 22:05 UTC (permalink / raw)
  To: linux-kernel

Hi all,

Here are a bunch of patches working to convert drivers to use the
dev_groups field in classes instead of using the dev_attrs field, which
will be going away soon, as we really only want to support groups in the
future, not multiple ways of creating default attributes.

They are all CC:ed the various driver authors, and can go in through
their trees, or through mine, which ever is easier.

thanks,

greg k-h


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-08-20 23:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-15 16:03 [PATCH 35/36] hid: roccat: convert class code to use bin_attrs in groups Stefan Achatz
2013-08-15 16:40 ` Greg Kroah-Hartman
2013-08-20  5:28 ` Aw: " screamingfist
2013-08-20 23:58   ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2013-07-24 22:05 [PATCH 00/36] remove dev_attrs usage in 'struct class' Greg Kroah-Hartman
2013-07-24 22:05 ` [PATCH 35/36] hid: roccat: convert class code to use bin_attrs in groups Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®