* [PATCH v3 0/3] toshiba_acpi: Accelerometer updates
@ 2016-06-28 1:46 Azael Avalos
2016-06-28 1:46 ` [PATCH v3 2/3] toshiba_acpi: Remove the position sysfs entry Azael Avalos
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Azael Avalos @ 2016-06-28 1:46 UTC (permalink / raw)
To: Darren Hart, platform-driver-x86, linux-kernel; +Cc: Azael Avalos
These series of patches update the accelerometer axis data
reporting to use the IIO subsystem, deprecating the custom
position sysfs entry, and finally bumping the driver version
to 0.24.
Changes since v2:
- Small format and style changes once again
- Renamed toshiba_accel* functions to toshiba_iio_accel* to
differentiate from the iio functions and the toshiba_acpi
driver fuctions
- Print error messages instead of bailing out in case the
iio_device* functions fail, this is to allow the driver
to continue loading its many functions
Changes since v1:
- Small format and style changes
- Changed the iio code according to feedback from Jonathan Cameron
Azael Avalos (3):
toshiba_acpi: Add IIO interface for accelerometer axis data
toshiba_acpi: Remove the position sysfs entry
toshiba_acpi: Bump driver version and update copyright year
drivers/platform/x86/toshiba_acpi.c | 136 +++++++++++++++++++++++++++++-------
1 file changed, 109 insertions(+), 27 deletions(-)
--
2.8.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 2/3] toshiba_acpi: Remove the position sysfs entry
2016-06-28 1:46 [PATCH v3 0/3] toshiba_acpi: Accelerometer updates Azael Avalos
@ 2016-06-28 1:46 ` Azael Avalos
2016-06-28 1:46 ` [PATCH v3 3/3] toshiba_acpi: Bump driver version and update copyright year Azael Avalos
2016-06-28 4:29 ` [PATCH v3 0/3] toshiba_acpi: Accelerometer updates Darren Hart
2 siblings, 0 replies; 4+ messages in thread
From: Azael Avalos @ 2016-06-28 1:46 UTC (permalink / raw)
To: Darren Hart, platform-driver-x86, linux-kernel; +Cc: Azael Avalos
Now that we have proper support for the acceleromeer under the IIO
subsystem, the _position_ sysfs file is now deprecated.
This patch removes all code related to the position sysfs entry.
Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
---
drivers/platform/x86/toshiba_acpi.c | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index bd9b346a..ea0262e 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -1961,28 +1961,6 @@ static ssize_t touchpad_show(struct device *dev,
}
static DEVICE_ATTR_RW(touchpad);
-static ssize_t position_show(struct device *dev,
- struct device_attribute *attr, char *buf)
-{
- struct toshiba_acpi_dev *toshiba = dev_get_drvdata(dev);
- u32 xyval, zval, tmp;
- u16 x, y, z;
- int ret;
-
- xyval = zval = 0;
- ret = toshiba_accelerometer_get(toshiba, &xyval, &zval);
- if (ret < 0)
- return ret;
-
- x = xyval & HCI_ACCEL_MASK;
- tmp = xyval >> HCI_MISC_SHIFT;
- y = tmp & HCI_ACCEL_MASK;
- z = zval & HCI_ACCEL_MASK;
-
- return sprintf(buf, "%d %d %d\n", x, y, z);
-}
-static DEVICE_ATTR_RO(position);
-
static ssize_t usb_sleep_charge_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
@@ -2353,7 +2331,6 @@ static struct attribute *toshiba_attributes[] = {
&dev_attr_available_kbd_modes.attr,
&dev_attr_kbd_backlight_timeout.attr,
&dev_attr_touchpad.attr,
- &dev_attr_position.attr,
&dev_attr_usb_sleep_charge.attr,
&dev_attr_sleep_functions_on_battery.attr,
&dev_attr_usb_rapid_charge.attr,
@@ -2380,8 +2357,6 @@ static umode_t toshiba_sysfs_is_visible(struct kobject *kobj,
exists = (drv->kbd_mode == SCI_KBD_MODE_AUTO) ? true : false;
else if (attr == &dev_attr_touchpad.attr)
exists = (drv->touchpad_supported) ? true : false;
- else if (attr == &dev_attr_position.attr)
- exists = (drv->accelerometer_supported) ? true : false;
else if (attr == &dev_attr_usb_sleep_charge.attr)
exists = (drv->usb_sleep_charge_supported) ? true : false;
else if (attr == &dev_attr_sleep_functions_on_battery.attr)
--
2.8.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v3 3/3] toshiba_acpi: Bump driver version and update copyright year
2016-06-28 1:46 [PATCH v3 0/3] toshiba_acpi: Accelerometer updates Azael Avalos
2016-06-28 1:46 ` [PATCH v3 2/3] toshiba_acpi: Remove the position sysfs entry Azael Avalos
@ 2016-06-28 1:46 ` Azael Avalos
2016-06-28 4:29 ` [PATCH v3 0/3] toshiba_acpi: Accelerometer updates Darren Hart
2 siblings, 0 replies; 4+ messages in thread
From: Azael Avalos @ 2016-06-28 1:46 UTC (permalink / raw)
To: Darren Hart, platform-driver-x86, linux-kernel; +Cc: Azael Avalos
After several fixes, and added support for more features (WWAN,
Cooling Method and IIO accelometer axis data), bump the driver
version to 0.24.
Also update the copyright year.
Signed-off-by: Azael Avalos <coproscefalo@gmail.com>
---
drivers/platform/x86/toshiba_acpi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c
index ea0262e..9d60a40 100644
--- a/drivers/platform/x86/toshiba_acpi.c
+++ b/drivers/platform/x86/toshiba_acpi.c
@@ -4,7 +4,7 @@
* Copyright (C) 2002-2004 John Belmonte
* Copyright (C) 2008 Philip Langdale
* Copyright (C) 2010 Pierre Ducroquet
- * Copyright (C) 2014-2015 Azael Avalos
+ * Copyright (C) 2014-2016 Azael Avalos
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -31,7 +31,7 @@
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-#define TOSHIBA_ACPI_VERSION "0.23"
+#define TOSHIBA_ACPI_VERSION "0.24"
#define PROC_INTERFACE_VERSION 1
#include <linux/kernel.h>
--
2.8.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 0/3] toshiba_acpi: Accelerometer updates
2016-06-28 1:46 [PATCH v3 0/3] toshiba_acpi: Accelerometer updates Azael Avalos
2016-06-28 1:46 ` [PATCH v3 2/3] toshiba_acpi: Remove the position sysfs entry Azael Avalos
2016-06-28 1:46 ` [PATCH v3 3/3] toshiba_acpi: Bump driver version and update copyright year Azael Avalos
@ 2016-06-28 4:29 ` Darren Hart
2 siblings, 0 replies; 4+ messages in thread
From: Darren Hart @ 2016-06-28 4:29 UTC (permalink / raw)
To: Azael Avalos; +Cc: platform-driver-x86, linux-kernel, Jonathan Cameron
On Mon, Jun 27, 2016 at 07:46:42PM -0600, Azael Avalos wrote:
> These series of patches update the accelerometer axis data
> reporting to use the IIO subsystem, deprecating the custom
> position sysfs entry, and finally bumping the driver version
> to 0.24.
>
Thanks Azael, queued to testing for 4.8.
Jonathan, I took the full set.
> Changes since v2:
> - Small format and style changes once again
> - Renamed toshiba_accel* functions to toshiba_iio_accel* to
> differentiate from the iio functions and the toshiba_acpi
> driver fuctions
> - Print error messages instead of bailing out in case the
> iio_device* functions fail, this is to allow the driver
> to continue loading its many functions
>
> Changes since v1:
> - Small format and style changes
> - Changed the iio code according to feedback from Jonathan Cameron
>
> Azael Avalos (3):
> toshiba_acpi: Add IIO interface for accelerometer axis data
> toshiba_acpi: Remove the position sysfs entry
> toshiba_acpi: Bump driver version and update copyright year
>
> drivers/platform/x86/toshiba_acpi.c | 136 +++++++++++++++++++++++++++++-------
> 1 file changed, 109 insertions(+), 27 deletions(-)
>
> --
> 2.8.4
>
>
--
Darren Hart
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-06-28 4:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-28 1:46 [PATCH v3 0/3] toshiba_acpi: Accelerometer updates Azael Avalos
2016-06-28 1:46 ` [PATCH v3 2/3] toshiba_acpi: Remove the position sysfs entry Azael Avalos
2016-06-28 1:46 ` [PATCH v3 3/3] toshiba_acpi: Bump driver version and update copyright year Azael Avalos
2016-06-28 4:29 ` [PATCH v3 0/3] toshiba_acpi: Accelerometer updates Darren Hart
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®