[PATCH 6/7] HID: roccat: Deprecated some Koneplus sysfs attributes

2012-11-10 Thread Stefan Achatz
Introduced attribute "control" and made profile_settings and profile_buttons
readable, which makes profile[1-5]_settings and profile[1-5]_buttons obsolete.

Signed-off-by: Stefan Achatz 
---
 .../ABI/obsolete/sysfs-driver-hid-roccat-koneplus  |   27 ++
 .../ABI/testing/sysfs-driver-hid-roccat-koneplus   |   29 +++-
 drivers/hid/hid-roccat-koneplus.c  |   10 ---
 drivers/hid/hid-roccat-koneplus.h  |2 +
 4 files changed, 39 insertions(+), 29 deletions(-)

diff --git a/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus 
b/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus
index 22568b4..833fd59 100644
--- a/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus
+++ b/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus
@@ -8,6 +8,7 @@ Description:The integer value of this attribute ranges from 
0-4.
When written, this file sets the number of the startup profile
and the mouse activates this profile immediately.
Please use actual_profile, it does the same thing.
+Users: http://roccat.sourceforge.net
 
 What:  /sys/bus/usb/devices/-:./::./koneplus/roccatkoneplus/firmware_version
 Date:  October 2010
@@ -19,3 +20,29 @@ Description: When read, this file returns the raw integer 
version number of the
left. E.g. a returned value of 121 means 1.21
This file is readonly.
Please read binary attribute info which contains firmware 
version.
+Users: http://roccat.sourceforge.net
+
+What:  /sys/bus/usb/devices/-:./::./koneplus/roccatkoneplus/profile[1-5]_buttons
+Date:  August 2010
+Contact:   Stefan Achatz 
+Description:   The mouse can store 5 profiles which can be switched by the
+   press of a button. A profile is split in settings and buttons.
+   profile_buttons holds information about button layout.
+   When read, these files return the respective profile buttons.
+   The returned data is 77 bytes in size.
+   This file is readonly.
+   Write control to select profile and read profile_buttons 
instead.
+Users: http://roccat.sourceforge.net
+
+What:  /sys/bus/usb/devices/-:./::./koneplus/roccatkoneplus/profile[1-5]_settings
+Date:  August 2010
+Contact:   Stefan Achatz 
+Description:   The mouse can store 5 profiles which can be switched by the
+   press of a button. A profile is split in settings and buttons.
+   profile_settings holds information like resolution, sensitivity
+   and light effects.
+   When read, these files return the respective profile settings.
+   The returned data is 43 bytes in size.
+   This file is readonly.
+   Write control to select profile and read profile_settings 
instead.
+Users: http://roccat.sourceforge.net
\ No newline at end of file
diff --git a/Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus 
b/Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus
index ed1213d..1a126ed 100644
--- a/Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus
+++ b/Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus
@@ -39,18 +39,8 @@ Description: The mouse can store 5 profiles which can be 
switched by the
The mouse will reject invalid data.
Which profile to write is determined by the profile number
contained in the data.
-   This file is writeonly.
-Users: http://roccat.sourceforge.net
-
-What:  /sys/bus/usb/devices/-:./::./koneplus/roccatkoneplus/profile[1-5]_buttons
-Date:  August 2010
-Contact:   Stefan Achatz 
-Description:   The mouse can store 5 profiles which can be switched by the
-   press of a button. A profile is split in settings and buttons.
-   profile_buttons holds information about button layout.
-   When read, these files return the respective profile buttons.
-   The returned data is 77 bytes in size.
-   This file is readonly.
+   Before reading this file, control has to be written to select
+   which profile to read.
 Users: http://roccat.sourceforge.net
 
 What:  /sys/bus/usb/devices/-:./::./koneplus/roccatkoneplus/profile_settings
@@ -65,19 +55,8 @@ Description: The mouse can store 5 profiles which can be 
switched by the
The mouse will reject invalid data.
Which profile to write is determined by the profile number
contained in the data.
-   This file is writeonly.
-Users: http://roccat.sourceforge.net
-
-What:  /sys/bus/usb/devices/-:./::./koneplus/roccatkoneplus/profile[1-5]_settings
-Date:  August 2010
-Contact:   Stefan Achatz 

[PATCH 6/7] HID: roccat: Deprecated some Koneplus sysfs attributes

2012-11-10 Thread Stefan Achatz
Introduced attribute control and made profile_settings and profile_buttons
readable, which makes profile[1-5]_settings and profile[1-5]_buttons obsolete.

Signed-off-by: Stefan Achatz erazor...@users.sourceforge.net
---
 .../ABI/obsolete/sysfs-driver-hid-roccat-koneplus  |   27 ++
 .../ABI/testing/sysfs-driver-hid-roccat-koneplus   |   29 +++-
 drivers/hid/hid-roccat-koneplus.c  |   10 ---
 drivers/hid/hid-roccat-koneplus.h  |2 +
 4 files changed, 39 insertions(+), 29 deletions(-)

diff --git a/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus 
b/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus
index 22568b4..833fd59 100644
--- a/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus
+++ b/Documentation/ABI/obsolete/sysfs-driver-hid-roccat-koneplus
@@ -8,6 +8,7 @@ Description:The integer value of this attribute ranges from 
0-4.
When written, this file sets the number of the startup profile
and the mouse activates this profile immediately.
Please use actual_profile, it does the same thing.
+Users: http://roccat.sourceforge.net
 
 What:  /sys/bus/usb/devices/busnum-devnum:config num.interface 
num/hid-bus:vendor-id:product-id.num/koneplus/roccatkoneplusminor/firmware_version
 Date:  October 2010
@@ -19,3 +20,29 @@ Description: When read, this file returns the raw integer 
version number of the
left. E.g. a returned value of 121 means 1.21
This file is readonly.
Please read binary attribute info which contains firmware 
version.
+Users: http://roccat.sourceforge.net
+
+What:  /sys/bus/usb/devices/busnum-devnum:config num.interface 
num/hid-bus:vendor-id:product-id.num/koneplus/roccatkoneplusminor/profile[1-5]_buttons
+Date:  August 2010
+Contact:   Stefan Achatz erazor...@users.sourceforge.net
+Description:   The mouse can store 5 profiles which can be switched by the
+   press of a button. A profile is split in settings and buttons.
+   profile_buttons holds information about button layout.
+   When read, these files return the respective profile buttons.
+   The returned data is 77 bytes in size.
+   This file is readonly.
+   Write control to select profile and read profile_buttons 
instead.
+Users: http://roccat.sourceforge.net
+
+What:  /sys/bus/usb/devices/busnum-devnum:config num.interface 
num/hid-bus:vendor-id:product-id.num/koneplus/roccatkoneplusminor/profile[1-5]_settings
+Date:  August 2010
+Contact:   Stefan Achatz erazor...@users.sourceforge.net
+Description:   The mouse can store 5 profiles which can be switched by the
+   press of a button. A profile is split in settings and buttons.
+   profile_settings holds information like resolution, sensitivity
+   and light effects.
+   When read, these files return the respective profile settings.
+   The returned data is 43 bytes in size.
+   This file is readonly.
+   Write control to select profile and read profile_settings 
instead.
+Users: http://roccat.sourceforge.net
\ No newline at end of file
diff --git a/Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus 
b/Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus
index ed1213d..1a126ed 100644
--- a/Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus
+++ b/Documentation/ABI/testing/sysfs-driver-hid-roccat-koneplus
@@ -39,18 +39,8 @@ Description: The mouse can store 5 profiles which can be 
switched by the
The mouse will reject invalid data.
Which profile to write is determined by the profile number
contained in the data.
-   This file is writeonly.
-Users: http://roccat.sourceforge.net
-
-What:  /sys/bus/usb/devices/busnum-devnum:config num.interface 
num/hid-bus:vendor-id:product-id.num/koneplus/roccatkoneplusminor/profile[1-5]_buttons
-Date:  August 2010
-Contact:   Stefan Achatz erazor...@users.sourceforge.net
-Description:   The mouse can store 5 profiles which can be switched by the
-   press of a button. A profile is split in settings and buttons.
-   profile_buttons holds information about button layout.
-   When read, these files return the respective profile buttons.
-   The returned data is 77 bytes in size.
-   This file is readonly.
+   Before reading this file, control has to be written to select
+   which profile to read.
 Users: http://roccat.sourceforge.net
 
 What:  /sys/bus/usb/devices/busnum-devnum:config num.interface 
num/hid-bus:vendor-id:product-id.num/koneplus/roccatkoneplusminor/profile_settings
@@ -65,19 +55,8 @@ Description: The