[PATCH] spi: erase pointer to drvdata on removal

2012-11-01 Thread Vivien Didelot
As for i2c-core, let the SPI core handle the removal of the device's drvdata, after a remove() or a probe() failure. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/spi/spi.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH] gpio: add TS-5500 DIO headers support

2012-09-25 Thread Vivien Didelot
The Technologic Systems TS-5500 platform provides 3 digital I/O headers: DIO1, DIO2, and the LCD port, that may be used as a DIO header. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com Signed-off-by: Jerome Oufella jerome.oufe...@savoirfairelinux.com --- drivers/gpio/Kconfig

Re: [PATCH] gpio: add TS-5500 DIO headers support

2012-09-26 Thread Vivien Didelot
Hi, I think the Kconfig patch is wrong, please do not consider this patchset. I'll send a v2 very soon. On Tue, 2012-09-25 at 20:42 -0400, Vivien Didelot wrote: The Technologic Systems TS-5500 platform provides 3 digital I/O headers: DIO1, DIO2, and the LCD port, that may be used as a DIO

Re: [PATCH v4 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-03 Thread Vivien Didelot
Hi Guenter, On Tue, 2012-10-02 at 22:07 -0700, Guenter Roeck wrote: On Tue, Oct 02, 2012 at 11:33:27PM -0400, Vivien Didelot wrote: From: Guillaume Roguez guillaume.rog...@savoirfairelinux.com The ADS7830 device is almost the same as the ADS7828, except that it does 8-bit sampling

[PATCH] i2c: correct struct i2c_driver doc about detection

2012-10-03 Thread Vivien Didelot
s/address_data/address_list/ in addition to c3813d6. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- include/linux/i2c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 8e25a91..8d87329 100644 --- a/include

[PATCH v5 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-03 Thread Vivien Didelot
...@savoirfairelinux.com Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/ads7828 | 11 +-- drivers/hwmon/Kconfig | 7 --- drivers/hwmon/ads7828.c | 25 +++-- 3 files changed, 32 insertions(+), 11 deletions(-) diff --git

[PATCH v5 1/2] hwmon: (ads7828) driver cleanup

2012-10-03 Thread Vivien Didelot
style issues, avoiding function prototypes and using convenient macros such as module_i2c_driver(). Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/ads7828 | 35 -- drivers/hwmon/ads7828.c | 228

Re: [PATCH] gpio: add TS-5500 DIO headers support

2012-10-04 Thread Vivien Didelot
Hi, Grant, Linus, any feedback? Thanks, Vivien On Wed, 2012-09-26 at 11:37 -0400, Vivien Didelot wrote: +config GPIO_TS5500 + tristate TS-5500 DIO Headers + depends on TS5500 + help + This driver supports the 3 Digital I/O headers of the Technologic

Re: [PATCH] gpio: add TS-5500 DIO headers support

2012-10-08 Thread Vivien Didelot
Hi Linus, On Mon, 2012-10-08 at 12:38 +0200, Linus Walleij wrote: On Wed, Sep 26, 2012 at 2:42 AM, Vivien Didelot vivien.dide...@savoirfairelinux.com wrote: The Technologic Systems TS-5500 platform provides 3 digital I/O headers: DIO1, DIO2, and the LCD port, that may be used as a DIO

Re: [PATCH] gpio: add TS-5500 DIO headers support

2012-10-12 Thread Vivien Didelot
Hi Linus, On Fri, 2012-10-12 at 22:53 +0200, Linus Walleij wrote: Well that may also be a pretty big step if you just want to mux one bank of GPIO. I'm a bit ambivalent. But if you want to tie pin and gpio information together and name all pins, pinctrl is what should suit you best. In the

[PATCH RESEND] spi: erase pointer to drvdata on removal

2012-12-03 Thread Vivien Didelot
patch https://lkml.org/lkml/2012/11/1/314 Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/spi/spi.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 84c2861..fe636fe 100644 --- a/drivers/spi

Re: [PATCH RESEND] spi: erase pointer to drvdata on removal

2012-12-04 Thread Vivien Didelot
Hi Grant, On Tue, 2012-12-04 at 14:56 +, Grant Likely wrote: Instead of clearing the pointer only in the spi code, perhaps the checks should be in really_probe() and __device_release_driver() so it covers all bus types. Also, don't clear the pointer. Just use dev_err() to report on the

Re: [tip:x86/platform] x86: Add TS-5500 platform support

2013-01-25 Thread Vivien Didelot
Hi Ingo, This patch still appears to have some problems with certain (rare) LEDS .config variations: arch/x86/built-in.o: In function `ts5500_init': ts5500.c:(.init.text+0xdae6): undefined reference to `led_classdev_register' Config attached. Please fix resend. I think the

Re: [PATCH] HID: add ThingM blink(1) USB LED support

2013-01-21 Thread Vivien Didelot
Hi Jiri, hid-blink sounds too generic to me, taking into account that this is not 'generic HID blinking' framework, but rather a specific device driver for a particular device. So something like hid-thingm-blink sounds more reasonable to me. Ok, I'll name the file hid-thingm-blink1.c

[PATCH v2] HID: add ThingM blink(1) USB RGB LED support

2013-01-21 Thread Vivien Didelot
-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/ABI/testing/sysfs-driver-hid-blink1 | 23 ++ MAINTAINERS | 5 + drivers/hid/Kconfig | 10 + drivers/hid/Makefile | 1 + drivers

Re: [PATCH] HID: add ThingM blink(1) USB LED support

2013-01-21 Thread Vivien Didelot
Hi, I wrote: Should I keep the Kconfig macro CONFIG_BLINK1 or CONFIG_THINGM_BLINK1 sounds better? CONFIG_HID_THINGM_BLINK1 is definitely more explicit. Here's a link to the v2: https://lkml.org/lkml/2013/1/21/435 Thanks, Vivien -- To unsubscribe from this list: send the line unsubscribe

Re: [PATCH v2] HID: add ThingM blink(1) USB RGB LED support

2013-01-21 Thread Vivien Didelot
Hi Simon, +++ b/Documentation/ABI/testing/sysfs-driver-hid-blink1 @@ -0,0 +1,23 @@ +What: /sys/class/leds/blink(1)::serial/rgb +Date: January 2013 +Contact: Vivien Didelot vivien.dide...@savoirfairelinux.com +Description: The ThingM blink(1) is an USB

Re: [PATCH v2] HID: add ThingM blink(1) USB RGB LED support

2013-01-22 Thread Vivien Didelot
Hi, Shouldn't the name presented in the sys/class/leds directories change appropriately too? The directory name for the device under /sys/class/leds is blink(1)::serial, where serial is the last 4 digits of the device serial number (the first 4 digits are always the same:

Re: [PATCH v2] HID: add ThingM blink(1) USB RGB LED support

2013-01-22 Thread Vivien Didelot
The vendor's name is ThingM and the product's name is blink(1), not blink. Given that, would you prefer to keep blink(1)::1234, or would it rather be thingm-blink1::1234 (avoiding parenthesis)? I ask the same question for the driver name, which is actually blink(1). Actually,

[PATCH v3] HID: add ThingM blink(1) USB RGB LED support

2013-01-22 Thread Vivien Didelot
is version 3. It updates the name of the source file, the driver and the led sysfs entry, according to comments from Jiri Kosina and Simon Wood. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/ABI/testing/sysfs-driver-hid-thingm | 23 ++ MAINTAINERS

[PATCH] ARM: davinci: da8xx_register_spi() should not register SPI board info

2012-09-10 Thread Vivien Didelot
, and updates the impacted board-da8{3,5}0-evm.c, and board-mityomapl138.c files accordingly. It also sets the SPI platform data static, as it doesn't need to be exported. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- arch/arm/mach-davinci/board-da830-evm.c| 9 +++-- arch/arm

[PATCH] hwmon: add Maxim MAX197 support

2012-08-30 Thread Vivien Didelot
} to 2V, and {0,-4V} to 4V on the MAX199. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/max197 | 60 ++ drivers/hwmon/Kconfig| 9 + drivers/hwmon/Makefile | 1 + drivers/hwmon/max197.c | 378

Re: [PATCH] hwmon: add Maxim MAX197 support

2012-08-30 Thread Vivien Didelot
Hi Guenter, Thanks for your detailed comments. I'll send a new version soon. About the following comment, I agree with you. However as there is no convention for this case, for now I would prefer to stick with the model as seen in drivers such as sht15. In the future, I think we could add a

[PATCH v2] hwmon: add Maxim MAX197 support

2012-08-30 Thread Vivien Didelot
} to 2V, and {0,-4V} to 4V on the MAX199. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/max197 | 60 ++ drivers/hwmon/Kconfig| 9 + drivers/hwmon/Makefile | 1 + drivers/hwmon/max197.c | 377

Re: [PATCH] hwmon: add Maxim MAX197 support

2012-08-30 Thread Vivien Didelot
I guess we're too fast! I've just seen your reply, this is much cleaner, indeed. I'll update the max197 driver, and fix the sht15 driver as soon as I can. Thanks, Vivien - Mail original - De: Guenter Roeck li...@roeck-us.net À: Vivien Didelot vivien.dide...@savoirfairelinux.com Cc: lm

[PATCH v3] hwmon: add Maxim MAX197 support

2012-08-30 Thread Vivien Didelot
} to 2V, and {0,-4V} to 4V on the MAX199. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/max197 | 60 ++ drivers/hwmon/Kconfig| 9 + drivers/hwmon/Makefile | 1 + drivers/hwmon/max197.c | 349

[PATCH] hwmon: (sht15) remove multiple driver registration

2012-08-30 Thread Vivien Didelot
Declare an array of platform_device_id, instead of registering a driver for each supported chip. This makes the code cleaner. Also add a module description. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/hwmon/sht15.c | 94

Re: [PATCH] hwmon: add Maxim MAX197 support

2012-08-31 Thread Vivien Didelot
Yes, good to know that it exists. Thanks for spotting this and applying the patches! Regards, Vivien - Mail original - De: Guenter Roeck li...@roeck-us.net À: Jean Delvare kh...@linux-fr.org Cc: Vivien Didelot vivien.dide...@savoirfairelinux.com, lm-sens...@lm-sensors.org, linux-kernel

Re: [PATCH v3] hwmon: add Maxim MAX197 support

2012-09-04 Thread Vivien Didelot
Hi, On Tue, 2012-09-04 at 10:20 -0700, Guenter Roeck wrote: Applied to -next. Hm, now it's probably to late, but for this kind of general purpose ADC the IIO framework is in my opinion the better place to add support for it. Possibly. If someone writes an iio

[PATCH] mtd: m25p80: add support for Micron N25Q256A

2012-08-14 Thread Vivien Didelot
The manufacturer datasheet can be found on the Micron website, under the name n25q_256mb_3v_65nm.pdf: http://www.micron.com/search?source=psq=n25q_256mb_3v_65nm Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/mtd/devices/m25p80.c | 3 +++ 1 file changed, 3

Re: [PATCH] gpio: add TS-5500 DIO headers support

2012-12-05 Thread Vivien Didelot
Hi Linus, I rewrote some parts according to your comments, but I still have some concerns. On Fri, 2012-10-12 at 22:53 +0200, Linus Walleij wrote: (...) +static int ts5500_gpio_to_irq(struct gpio_chip *chip, unsigned offset) +{ + const struct ts5500_dio line =

[PATCH v2] gpio: add TS-5500 DIO blocks support

2012-12-07 Thread Vivien Didelot
#Digital_I.2FO This driver is not limited to the TS-5500 blocks. It can be extended to support similar boards pin blocks, such as on the TS-5600. This patch is the V2 of the previous https://lkml.org/lkml/2012/9/25/671 with corrections suggested by Linus Walleij. Signed-off-by: Vivien Didelot

Re: [PATCH] ARM: davinci: da8xx_register_spi() should not register SPI board info

2012-11-28 Thread Vivien Didelot
Hi Sekhar, On Wed, 2012-11-28 at 14:19 +0530, Sekhar Nori wrote: Hi Vivien, On 9/11/2012 5:59 AM, Vivien Didelot wrote: Without this patch, da8xx_register_spi() registers the SPI board info, the SPI controller, and sets its number of chipselect to the size of the static spi_board_info

[PATCH] HID: add ThingM blink(1) USB LED support

2012-12-18 Thread Vivien Didelot
-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/ABI/testing/sysfs-driver-hid-blink1 | 25 ++ MAINTAINERS | 5 + drivers/hid/Kconfig | 10 + drivers/hid/Makefile | 1 + drivers

Re: [PATCH v2] gpio: add TS-5500 DIO blocks support

2012-12-19 Thread Vivien Didelot
Hi Grant, Please take a look at either send me a follow-on patch to convert it to use gpio-generic, or tell my why gpio-generic isn't appropriate here. The gpio-generic driver is not appropriate here because Technologic Systems x86-based platforms do not use a typical GPIO implementation. To

[PATCH] x86: add TS-5500 platform support

2013-01-04 Thread Vivien Didelot
on-board LED, 2 pin blocks (GPIO) and its analog/digital converter. It can be extended to support other Technologic Systems products, such as the TS-5600. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/ABI/testing/sysfs-platform-ts5500 | 47 MAINTAINERS

[PATCH] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Vivien Didelot
by removing unused macros, and moving the driver declaration to avoid some function prototypes. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/ads7828 | 12 +++- drivers/hwmon/Kconfig | 7 ++- drivers/hwmon/ads7828.c | 137

Re: [PATCH] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Vivien Didelot
Oops, I used the wrong address for Guenter. Here we go. Thanks, Vivien - Mail original - De: Vivien Didelot vivien.dide...@savoirfairelinux.com À: lm-sens...@lm-sensors.org Cc: Guillaume Roguez guillaume.rog...@savoirfairelinux.com, Guenter Roeck guenter.ro...@ericsson.com, Jean Delvare

Re: [PATCH] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Vivien Didelot
On Mon, 2012-10-01 at 14:29 -0700, Guenter Roeck wrote: One change per patch, please. Please handle the cleanup with a separate patch. Other than that, not sure if the changes warrant a copyright, and you can not add a copyright for a third person (or replace a Written by statement with a

[PATCH v2 1/2] hwmon: (ads7828) driver cleanup

2012-10-01 Thread Vivien Didelot
* Remove unused macros; * Point to the documentation; * Coding Style fixes (Kernel Doc, spacing); * Move driver declaration to avoid adding function prototypes. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/hwmon/ads7828.c | 91

[PATCH v2 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Vivien Didelot
...@savoirfairelinux.com Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/ads7828 | 12 -- drivers/hwmon/Kconfig | 7 +++--- drivers/hwmon/ads7828.c | 58 - 3 files changed, 55 insertions(+), 22 deletions(-) diff

Re: [PATCH v2 1/2] hwmon: (ads7828) driver cleanup

2012-10-01 Thread Vivien Didelot
Hi Guenter, On Mon, 2012-10-01 at 18:07 -0700, Guenter Roeck wrote: On Mon, Oct 01, 2012 at 07:16:23PM -0400, Vivien Didelot wrote: * Remove unused macros; * Point to the documentation; * Coding Style fixes (Kernel Doc, spacing); * Move driver declaration to avoid adding function

Re: [PATCH v2 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-01 Thread Vivien Didelot
Hi Guenter, On Mon, 2012-10-01 at 18:20 -0700, Guenter Roeck wrote: On Mon, Oct 01, 2012 at 07:16:24PM -0400, Vivien Didelot wrote: From: Guillaume Roguez guillaume.rog...@savoirfairelinux.com The ADS7830 device is almost the same as the ADS7828, except that it does 8-bit sampling

[PATCH v3 1/2] hwmon: (ads7828) driver cleanup

2012-10-02 Thread Vivien Didelot
* Remove module parameters, add a ads7828_platform_data; * Move driver declaration to avoid adding function prototypes; * Remove unused macros; * Coding Style fixes. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/ads7828 | 31 +++-- drivers

[PATCH v3 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-02 Thread Vivien Didelot
...@savoirfairelinux.com Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/ads7828 | 12 ++-- drivers/hwmon/Kconfig | 7 --- drivers/hwmon/ads7828.c | 45 ++--- 3 files changed, 48 insertions(+), 16 deletions(-) diff

Re: [PATCH v3 1/2] hwmon: (ads7828) driver cleanup

2012-10-02 Thread Vivien Didelot
Hi Guenter, Some of those changes weren't in the mainline tree a few days ago. I'll cherry-pick them and send a update very soon :-) Thanks for the tips, Vivien -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More

[PATCH v4 2/2] hwmon: (ads7828) add support for ADS7830

2012-10-02 Thread Vivien Didelot
...@savoirfairelinux.com Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/ads7828 | 12 ++-- drivers/hwmon/Kconfig | 7 --- drivers/hwmon/ads7828.c | 45 ++--- 3 files changed, 48 insertions(+), 16 deletions(-) diff

[PATCH v4 1/2] hwmon: (ads7828) driver cleanup

2012-10-02 Thread Vivien Didelot
* Remove module parameters, add a ads7828_platform_data; * Move driver declaration to avoid adding function prototypes; * Remove unused macros; * Coding Style fixes. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/hwmon/ads7828 | 31 +++-- drivers

Re: [PATCH] spi: erase pointer to drvdata on removal

2013-01-14 Thread Vivien Didelot
Hi Mark, Grant, On Mon, 14 Jan 2013 02:51:45 +, Mark Brown broo...@opensource.wolfsonmicro.com wrote: On Thu, Nov 01, 2012 at 02:05:36PM -0400, Vivien Didelot wrote: As for i2c-core, let the SPI core handle the removal of the device's drvdata, after a remove() or a probe

[PATCH v2] hwmon: (sht15) check GPIO directions

2013-01-15 Thread Vivien Didelot
(work_funct_t), we wake the queue up directly without updating the data-state flag, to notice the waiter of the I/O error. The patch also makes minor cleanups: s/error_ret/unlock for some labels and uses devm_gpio_request_one() for the clock line. Signed-off-by: Vivien Didelot vivien.dide

[PATCH] hwmon: (sht15) check GPIO directions

2013-01-07 Thread Vivien Didelot
. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/hwmon/sht15.c | 43 ++- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c index 9a594e6..10b078c 100644 --- a/drivers

[PATCH] hwmon: (sht15) avoid CamelCase

2013-01-07 Thread Vivien Didelot
This patch renames the supply_uV* variables to supply_uv* to avoid CamelCase as warned by the checkpatch.pl script. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/hwmon/sht15.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff

Re: [RFC] ARM: davinci: da850: add a few pinmux definitions

2013-07-26 Thread Vivien Didelot
Hi Sekhar, You wrote: Why do you need to add these definitions? If it is for a new platform you are working on, then it should be supported using DT, in which case we use the pinctrl-single driver and define the muxing needed in .dts/.dtsi files. Ok, good to know. Thanks, Vivien -- To

[PATCH] misc: (at24) move header to linux/platform_data/

2013-08-23 Thread Vivien Didelot
*mac_addr = ethernet_pdata-mac_addr;$ Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- MAINTAINERS| 2 +- arch/arm/mach-at91/board-sam9260ek.c | 2 +- arch/arm/mach-at91/board-sam9263ek.c | 2 +- arch/arm/mach-davinci/board-da830-evm.c

Re: [PATCH] misc: (at24) move header to linux/platform_data/

2013-08-23 Thread Vivien Didelot
Wolfram wrote: On Fri, Aug 23, 2013 at 02:38:20PM -0400, Vivien Didelot wrote: This patch moves the at24.h header from include/linux/i2c to include/linux/platform_data and updates existing support accordingly. This message explains what the patch does but not why the change is wanted

Re: [PATCH] misc: (at24) move header to linux/platform_data/

2013-08-23 Thread Vivien Didelot
Hi, Alexander wrote: Can this file be additionally renamed to misc-at24.h to reflect belongs to a particular subsystem? I'm not sure about that. Having the subsystem name at the beginning of the file doesn't seem to be a convention for all subsystems. For instance, this is true for gpio, spi

Re: [PATCH] misc: (at24) move header to linux/platform_data/

2013-08-23 Thread Vivien Didelot
Wolfram wrote: IMHO it makes sense. Why wouldn't we want all platform_data in include/linux/platform_data/? For the same reason we don't want all driver source files in one directory? It's a mess. Well, that's different. Not all drivers expose platform data, but many subsystems have

Re: [PATCH] gpio: (gpio-pca953x) move header to linux/platform_data/

2013-08-16 Thread Vivien Didelot
Hi Linus, You wrote: But: drivers/gpio/gpio-pca953x.c | 2 +- (...) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 426c51d..8804aec 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -18,7 +18,7 @@

[PATCH] hwmon: (max6697) fix MAX6581 ideality

2013-07-30 Thread Vivien Didelot
Without this patch, the values for ideality (register 0x4b) and ideality selection mask (register 0x4c) are inverted. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/hwmon/max6697.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH] gpio: (gpio-pca953x) move header to linux/platform_data/

2013-07-31 Thread Vivien Didelot
This patch moves the pca953x.h header from include/linux/i2c to include/linux/platform_data and updates existing support accordingly. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- arch/arm/mach-at91/board-snapper9260.c | 2 +- arch/arm/mach-davinci/board-da850-evm.c

[PATCH] iio: (max1363) support SMBus for 8-bit devices

2013-10-20 Thread Vivien Didelot
a MAX11603 on a ICH7 controller. This patch also simplifies the max1363_write_basic_config() routine to use the struct max1363_state fields directly. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/iio/adc/max1363.c | 76

[PATCH] iio:adc:max1363 clear list of missing features

2014-01-10 Thread Vivien Didelot
filename. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/iio/adc/max1363.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c index e283f2f..1228272 100644 --- a/drivers/iio/adc/max1363.c

[PATCH] hwmon: (sht15) add include guard

2014-01-10 Thread Vivien Didelot
Add include guard to include/linux/platform_data/sht15.h to prevent multiple inclusion. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- include/linux/platform_data/sht15.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/platform_data/sht15.h b

[PATCH] hwmon: (max197) add include guard

2014-01-10 Thread Vivien Didelot
Add include guard to include/linux/platform_data/max197.h to prevent multiple inclusion. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- include/linux/platform_data/max197.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/linux/platform_data/max197.h b

Re: [PATCH] gpio: (gpio-pca953x) move header to linux/platform_data/

2013-08-29 Thread Vivien Didelot
As this patch mainly touches arch/arm/*, Olof/Kevin, would you mind applying it? The first message in thread is here: https://lkml.org/lkml/2013/7/31/552 Here are the previous ACKs: Acked-by: Linus Walleij linus.wall...@linaro.org Acked-by: H Hartley Sweeten hswee...@visionengravers.com

[PATCH RESEND] gpio: (gpio-pca953x) move header to linux/platform_data/

2013-08-29 Thread Vivien Didelot
This patch moves the pca953x.h header from include/linux/i2c to include/linux/platform_data and updates existing support accordingly. Acked-by: Linus Walleij linus.wall...@linaro.org Acked-by: H Hartley Sweeten hswee...@visionengravers.com Signed-off-by: Vivien Didelot vivien.dide

Re: [PATCH] misc: (at24) move header to linux/platform_data/

2013-09-26 Thread Vivien Didelot
Hi Wolfram, Wolfram wrote: IMHO it makes sense. Why wouldn't we want all platform_data in include/linux/platform_data/? For the same reason we don't want all driver source files in one directory? It's a mess. Well, that's different. Not all drivers expose platform data, but

[PATCH v2] misc: (at24) move header to linux/platform_data/

2013-09-27 Thread Vivien Didelot
*mac_addr = ethernet_pdata-mac_addr;$ Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- MAINTAINERS | 2 +- arch/arm/mach-at91/board-sam9260ek.c| 2 +- arch/arm/mach-at91/board-sam9263ek.c| 2 +- arch/arm/mach-davinci/board-da830-evm.c

[RFC] ARM: davinci: da850: add a few pinmux definitions

2013-07-23 Thread Vivien Didelot
This patch adds some pinmux definitions that we needed, such as SPI0, SPI1 and some GPIO. Note: I sent the patch as an RFC because I would like a confirmation for the appropriate name for SPI*_SCS* and EMA_A_RW pinmuxes. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- arch

[PATCH 3/4] HID: (thingm) refactor blink(1) support

2014-04-14 Thread Vivien Didelot
-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/ABI/testing/sysfs-driver-hid-thingm | 8 - drivers/hid/hid-thingm.c | 304 +++--- drivers/leds/Kconfig | 2 + 3 files changed, 209 insertions(+), 105 deletions

[PATCH 4/4] HID: (thingm) add support for blink(1) mk2

2014-04-14 Thread Vivien Didelot
does not support setting a color for a single RGB chip, so it was changed to 'c' (fade) with a timeout of 0. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/hid/hid-thingm.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid

[PATCH 2/4] HID: (thingm) remove the fade sysfs attribute

2014-04-14 Thread Vivien Didelot
As for the play sysfs attribute, remove this other non-standard attribute, so the driver only implements what is required to switch the LED on and off. Thus, a fade time won't be ideal for some fast-changing triggers. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com

[PATCH 1/4] HID: (thingm) remove the play sysfs attribute

2014-04-14 Thread Vivien Didelot
to switch on and off the LED. This feature is still easily accessible through hidraw. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/ABI/testing/sysfs-driver-hid-thingm | 7 - drivers/hid/hid-thingm.c | 33 --- 2

[PATCH 0/4] HID: (thingm) introduces blink(1) mk2

2014-04-14 Thread Vivien Didelot
This patchset introduces the support of the blink(1) mk2 device, after a refactoring of the thingm driver. It removes non-standard sysfs attributes and uses work queues to fix the usage of triggers with this device. Vivien Didelot (4): HID: (thingm) remove the play sysfs attribute HID

[PATCH 2/3] x86: (ts5500) add a name attribute

2014-07-08 Thread Vivien Didelot
Add a new name attribute to the ts5500 sysfs group, to clarify which supported board model it is. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- Documentation/ABI/testing/sysfs-platform-ts5500 | 7 +++ arch/x86/platform/ts5500/ts5500.c | 23

[PATCH 0/3] Add support for Technologic Systems TS-5400

2014-07-08 Thread Vivien Didelot
This patchset extends the TS-5500 platform driver to support the very similar Technologic Systems TS-5400 board (like the others from the TS-5x00 serie). The TS-5400 also has 2 GPIO blocks, which will be declared in a future patch, once the gpio-ts5500 driver will be modified accordingly. Vivien

[PATCH 3/3] x86: (ts5500) add support for TS-5400

2014-07-08 Thread Vivien Didelot
This patch extends the TS-5500 platform driver to support the similar Technologic Systems TS-5400 Single Board Computer. http://wiki.embeddedarm.com/wiki/TS-5400 Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- arch/x86/platform/ts5500/ts5500.c | 21 + 1

[PATCH 1/3] x86: (ts5500) use DEVICE_ATTR_RO macro

2014-07-08 Thread Vivien Didelot
Use the DEVICE_ATTR_RO helper macro to simplify the declaration of read-only sysfs attributes. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- arch/x86/platform/ts5500/ts5500.c | 50 +-- 1 file changed, 22 insertions(+), 28 deletions

[PATCH] net: dsa/mv88e6xxx: add reg read and write debug

2015-01-23 Thread Vivien Didelot
: 0x0330 mdio-gpio mdio-gpio.0: - addr: 0x1b reg: 0x09 val: 0x This is convenient to dynamically debug operations through debugfs with: echo file mv88e6xxx.c +p debugfs/dynamic_debug/control Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/net/dsa/mv88e6xxx.c

[PATCH] net: dsa/mv88e6352: make mv88e6352_wait generic

2015-01-23 Thread Vivien Didelot
the redundant check for ret 0. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/net/dsa/mv88e6352.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/net/dsa/mv88e6352.c b/drivers/net/dsa/mv88e6352.c index 258d9ef..e13adc7

Re: [PATCH 2/4] watchdog: max63xx: cleanup

2015-01-30 Thread Vivien Didelot
Hi Guenter, -#define MAX6369_WDSET (7 0) -#define MAX6369_WDI(1 3) Not really sure I understand why you remove those constants. that is personal preference, not cleanup. Someone else might submit another cleanup later on and re-introduce them. Indeed, I should have

Re: [PATCH 2/3] sysfs: Only accept read/write permissions for file attributes

2015-01-19 Thread Vivien Didelot
Hi Guenter, For sysfs file attributes, only read and write permisssions make sense. Minor typo, there's an extra 's' to permissions. Mask provided attribute permissions accordingly and send a warning to the console if invalid permission bits are set. Cc: Vivien Didelot vivien.dide

[PATCH 1/2] HID: hid-lg4ff: fix sysfs attribute permission

2015-01-18 Thread Vivien Didelot
There is no reason to set the range attribute executable to the user and group, and writable to the group. Fix the permission to 0644. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/hid/hid-lg4ff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 2/2] HID: hid-lg4ff: use DEVICE_ATTR_RW macro

2015-01-18 Thread Vivien Didelot
Use the DEVICE_ATTR_RW macro to reduce boiler plate and move the attribute declaration to get rid of function signatures. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/hid/hid-lg4ff.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git

Re: [PATCH 2/3] sysfs: Only accept read/write permissions for file attributes

2015-01-20 Thread Vivien Didelot
Hi Guenter, @@ -55,6 +55,12 @@ static int create_files(struct kernfs_node *parent, struct kobject *kobj, if (!mode) continue; } + +WARN(mode ~(S_IRUGO | S_IWUGO |

Re: [PATCH v2 3/3] asus-laptop: cleanup is_visible

2015-01-20 Thread Vivien Didelot
Hi Corentin, Use the attribute indexes and concise the if statements. Why ? I really don't see that as an improvement. The improvement is code clarity and maintainability. I'm not use we want to keep multiple returns and this goto thing. I think per-attribute if-statements are clearer.

Re: [PATCH] net: dsa: set parent of hwmon device

2015-01-21 Thread Vivien Didelot
Hi Guenter, Florian, - ds-hwmon_dev = hwmon_device_register_with_groups(NULL, + ds-hwmon_dev = hwmon_device_register_with_groups(parent, ds-hwmon_name, ds, dsa_hwmon_groups); if (IS_ERR(ds-hwmon_dev))

[PATCH] net: dsa: set slave MII bus PHY mask

2015-01-20 Thread Vivien Didelot
. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- net/dsa/slave.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 515569f..589aafd 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -46,6 +46,7 @@ void dsa_slave_mii_bus_init(struct

[PATCH] net: dsa: set parent of hwmon device

2015-01-20 Thread Vivien Didelot
Set the dsa device as the parent of the hwmon device, in order to link the hwmon subsystem under the corresponding /sys/devices/platform/dsa.X/ sysfs directory. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- net/dsa/dsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [PATCH v2 2/3] asus-laptop: use DEVICE_ATTR_* macros

2015-01-21 Thread Vivien Didelot
Hi Darren, Use DEVICE_ATTR_{RO,WO,RW} macros to simplify attributes declarations. It does a lot more than that, including a lot of seemingly superfluous reformatting of function declarations and renaming. What do you mean? DEVICE_ATTR_RW(foo) requires foo_show() and foo_store() functions,

Re: [PATCH] sysfs: group: allow is_visible to drop permissions

2015-01-17 Thread Vivien Didelot
Hi Guenter, Greg, This commit uses all the UGO bits returned by is_visible instead of OR'ing them with the default attribute mode. Concretely, this allows a driver to use macros like DEVICE_ATTR_RW to set the attribute show and store functions and remove the S_IWUSR permission in

[PATCH] sysfs: group: allow is_visible to drop permissions

2015-01-16 Thread Vivien Didelot
macros like DEVICE_ATTR_RW to set the attribute show and store functions and remove the S_IWUSR permission in is_visible if the implementation doesn't provide a setter. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- fs/sysfs/group.c | 12 +++- 1 file changed, 7 insertions

Re: [PATCH] sysfs: group: allow is_visible to drop permissions

2015-01-16 Thread Vivien Didelot
Hi Greg, On Fri, Jan 16, 2015 at 04:29:10PM -0500, Vivien Didelot wrote: Using the optional is_visible function, it is actually possible to either hide an attribute, or add a new permission, but not remove one. What code wants to remove attributes? Sorry, I meant removing a permission

[PATCH] asus-laptop: is_visible should not return a bool

2015-01-16 Thread Vivien Didelot
With a Lucid platform, asus_sysfs_is_visible() returns a boolean for ls_switch and ls_level attributes. Fix that and also s/supported/ok/ and s/asus-handle/handle/ to avoid lines wider than 80 chars. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/platform/x86/asus

[PATCH v2 2/3] asus-laptop: use DEVICE_ATTR_* macros

2015-01-18 Thread Vivien Didelot
Use DEVICE_ATTR_{RO,WO,RW} macros to simplify attributes declarations. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/platform/x86/asus-laptop.c | 95 ++ 1 file changed, 46 insertions(+), 49 deletions(-) diff --git a/drivers

[PATCH v2 1/3] asus-laptop: fix is_visible return value

2015-01-18 Thread Vivien Didelot
With a Lucid platform, asus_sysfs_is_visible() returned a boolean for ls_switch and ls_level attributes. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/platform/x86/asus-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform

[PATCH v2 3/3] asus-laptop: cleanup is_visible

2015-01-18 Thread Vivien Didelot
Use the attribute indexes and concise the if statements. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/platform/x86/asus-laptop.c | 98 -- 1 file changed, 40 insertions(+), 58 deletions(-) diff --git a/drivers/platform/x86/asus

[PATCH 1/4] watchdog: MAX63XX_WATCHDOG does not depend on ARM

2015-01-29 Thread Vivien Didelot
Remove the ARM Kconfig dependency since the Maxim MAX63xx devices are architecture independent. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers

[PATCH 4/4] watchdog: max63xx: add heartbeat to platform data

2015-01-29 Thread Vivien Didelot
over the platform setting. If not set, it will still default to DEFAULT_HEARTBEAT. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/watchdog/max63xx_wdt.c| 8 ++-- include/linux/platform_data/max63xx_wdt.h | 2 ++ 2 files changed, 8 insertions(+), 2

[PATCH 2/4] watchdog: max63xx: cleanup

2015-01-29 Thread Vivien Didelot
; * constify timeouts; * factorize the SET write operations; * few typos and comments... This will help introduce new features to the driver. Signed-off-by: Vivien Didelot vivien.dide...@savoirfairelinux.com --- drivers/watchdog/Kconfig | 7 +- drivers/watchdog/max63xx_wdt.c | 207

  1   2   3   4   5   6   7   8   9   10   >