[PATCH v3] iio: light: acpi-als: Properly enable on ASUS Zenbooks

2017-01-19 Thread Josef Gajdusek
ASUS Zenbooks need several special ACPI calls to enable the ALS peripheral. Otherwise, reads just return 0. Signed-off-by: Josef Gajdusek --- drivers/iio/light/acpi-als.c | 60 1 file changed, 60 insertions(+) diff --git a/drivers/iio/light/acpi

[PATCH v2] iio: light: acpi-als: Properly enable on ASUS Zenbooks

2017-01-19 Thread Josef Gajdusek
ASUS Zenbooks need several special ACPI calls to enable the ALS peripheral. Otherwise, reads just return 0. Signed-off-by: Josef Gajdusek --- drivers/iio/light/acpi-als.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/iio/light/acpi-als.c b/drivers/iio/light/acpi

[PATCH] iio: light: acpi-als: Properly enable on ASUS Zenbooks

2017-01-18 Thread Josef Gajdusek
ASUS Zenbooks need several special ACPI calls to enable the ALS peripheral. Otherwise, reads just return 0. Signed-off-by: Josef Gajdusek --- drivers/iio/light/acpi-als.c | 17 + 1 file changed, 17 insertions(+) diff --git a/drivers/iio/light/acpi-als.c b/drivers/iio/light/acpi

Re: [linux-sunxi] Re: [PATCH v2 3/5] thermal: Add a driver for the Allwinner THS sensor

2015-11-25 Thread Josef Gajdusek
November 24 2015 9:43 AM, "Maxime Ripard" wrote: > On Mon, Nov 23, 2015 at 09:02:50AM +0100, Josef Gajdusek wrote: > >> This patch adds support for the Sunxi thermal sensor on the Allwinner H3. > > You can drop the sunxi here. > >> Should be easily ex

[PATCH v2 4/5] dt-bindings: document sun8i_ths

2015-11-23 Thread Josef Gajdusek
This patch adds the binding documentation for the sun8i_ths driver Signed-off-by: Josef Gajdusek --- .../devicetree/bindings/thermal/sun8i-ths.txt | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-ths.txt diff

[PATCH v2 5/5] ARM: dts: sun8i: Add THS node to the H3 .dtsi

2015-11-23 Thread Josef Gajdusek
This patch adds nodes for the THS driver and the THS clock to the Allwinner H3 .dtsi file. Signed-off-by: Josef Gajdusek --- arch/arm/boot/dts/sun8i-h3.dtsi | 33 + 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts

[PATCH v2 1/5] ARM: dts: sun8i: Add SID node

2015-11-23 Thread Josef Gajdusek
Add a node describing the Security ID memory to the Allwinner H3 .dtsi file. Signed-off-by: Josef Gajdusek --- arch/arm/boot/dts/sun8i-h3.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index 0faa38a..58de718

[PATCH v2 3/5] thermal: Add a driver for the Allwinner THS sensor

2015-11-23 Thread Josef Gajdusek
This patch adds support for the Sunxi thermal sensor on the Allwinner H3. Should be easily extendable for the A33/A83T/... as they have similar but not completely identical sensors. Signed-off-by: Josef Gajdusek --- drivers/thermal/Kconfig | 7 + drivers/thermal/Makefile| 1

[PATCH v2 0/5] sunxi: THS support

2015-11-23 Thread Josef Gajdusek
;magical constants": what I meant is that altough the datasheet explains what they are, it does not explain how to pick their values. "ADC" and "Sensor" "acquire time" are also not exactly the most helpful descriptions. Anyway, I changed the values such as the final sam

[PATCH v2 2/5] clk: sunxi: Add driver for the H3 THS clock

2015-11-23 Thread Josef Gajdusek
This patch adds a driver for the THS clock which is present on the Allwinner H3. Signed-off-by: Josef Gajdusek --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + drivers/clk/sunxi/Makefile| 1 + drivers/clk/sunxi/clk-h3-ths.c| 98

[PATCH] thermal: Add support for Sunxi THS on the Allwinner H3

2015-11-18 Thread Josef Gajdusek
/A83T/... as they have similar but not completely identical sensors. Signed-off-by: Josef Gajdusek --- Documentation/devicetree/bindings/clock/sunxi.txt | 1 + .../devicetree/bindings/thermal/sunxi-ths.txt | 24 ++ arch/arm/boot/dts/sun8i-h3.dtsi| 27 +++ drivers/clk

Re: [PATCH 3/6] pinctrl: sunxi: Add H3 PIO controller support

2015-10-22 Thread josef . gajdusek
Hi everyone, I might be missing something, but why is the PL* GPIO bank not declared here? Dne středa 21. října 2015 18:30:50 UTC+2 Jens Kuske napsal(a): > The H3 uses the same pin controller as previous SoC's from Allwinner. > Add support for the pins controlled by the main PIO controller. > >

[PATCH v2] ARM: dts: sun4i: Add Iteaduino Plus A10

2015-07-20 Thread Josef Gajdusek
Iteaduino Plus A10 is a breakout board + Itead Core A10. It features 1GB RAM, has most of the A10 pins on a .1" header, 2 USB ports, 1 OTG USB port, Ethernet, HDMI, SATA, Speaker/Microphone 3.5mm jacks and an SD card slot. Signed-off-by: Josef Gajdusek --- It does not look like there ar

[PATCH] ARM: dts: sun4i: Add Iteaduino Plus A10

2015-07-19 Thread Josef Gajdusek
s_A10/A20 Signed-off-by: Josef Gajdusek --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun4i-a10-iteaduino-plus.dts | 202 + 2 files changed, 203 insertions(+) create mode 100644 arch/arm/boot/dts/sun4i-a10-iteaduino-plus.dts diff --git a

[PATCH] usb: Do not re-read descriptors for wired devices in usb_authorize_device()

2014-10-09 Thread Josef Gajdusek
. Signed-off-by: Josef Gajdusek --- drivers/usb/core/hub.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 11e80ac..c096a1a 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -2543,11 +2543,14

[PATCH v5 (staging-next) 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-22 Thread Josef Gajdusek
tic (this fixed bunch of variable not used warnings) v5: * Fixed sparse warning (moved regmap configuration structs from the header file to the _spi and _i2c files) * Added the hmc5983 to Documentation/devicetree/bindings/iio/magnetometer/hmc5843.txt Jo

[PATCH v5 (staging-next) 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-22 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v5 (staging-next) 3/5] staging:iio:hmc5843: register <-> value arrays now can have different lengths

2014-07-22 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek --- drivers

[PATCH v5 (staging-next) 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-22 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- .../devicetree/bindings/iio/magnetometer

[PATCH v5 (staging-next) 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-22 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 14

[PATCH v5 (staging-next) 1/5] staging:iio:hmc5843: Added regmap support

2014-07-22 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer/hmc5843.c | 140

[PATCH v4 (staging-next) 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-16 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v4 (staging-next) 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-16 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v4 (staging-next) 3/5] staging:iio:hmc5843: register <-> value arrays now can have different lengths

2014-07-16 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek --- drivers

[PATCH v4 (staging-next) 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-16 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 14

[PATCH v4 (staging-next) 1/5] staging:iio:hmc5843: Added regmap support

2014-07-16 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer/hmc5843.c | 140

[PATCH v4 (staging-next) 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-16 Thread Josef Gajdusek
tic (this fixed bunch of variable not used warnings) Rebased v4 on top of staging-next Josef Gajdusek (5): staging:iio:hmc5843: Added regmap support staging:iio:hmc5843: Split hmc5843.c to multiple files staging:iio:hmc5843: register <-> value arrays now can have different

[PATCH v4 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-15 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v4 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-15 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v4 3/5] staging:iio:hmc5843: register <-> value arrays now can have different lengths

2014-07-15 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek --- drivers

[PATCH v4 1/5] staging:iio:hmc5843: Added regmap support

2014-07-15 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer/hmc5843.c | 140

[PATCH v4 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-15 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 14

[PATCH v4 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-15 Thread Josef Gajdusek
tic (this fixed bunch of variable not used warnings) Jonathan, the patch series applies cleanly against mainline (for me at least), maybe you already have some hmc5843 related patches in your tree which are not yet in upstream? (probably https://lkml.org/lkml/2014/2/14/312) Josef Gajdu

[PATCH v3 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-08 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v3 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-08 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v3 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-08 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig| 16

[PATCH v3 3/5] staging:iio:hmc5843: register <-> value arrays now can have different lengths

2014-07-08 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek --- drivers

[PATCH v3 1/5] staging:iio:hmc5843: Added regmap support

2014-07-08 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer/hmc5843.c | 140

[PATCH v3 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-08 Thread Josef Gajdusek
This patch series modifies the hmc5843 driver to support the hmc5983 i2c and spi interfaces. Josef Gajdusek (5): staging:iio:hmc5843: Added regmap support staging:iio:hmc5843: Split hmc5843.c to multiple files staging:iio:hmc5843: register <-> value arrays now can have different l

Re: [PATCH v2 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-08 Thread Josef Gajdusek
On Tue, Jul 08, 2014 at 11:23:51AM +0300, Dan Carpenter wrote: > When you compare the old and new versions of hmc5843_read_raw() then it > appears there is a bug fix or something which hasn't been documentented > in the changelog. > > > -static int hmc5843_read_raw(struct iio_dev *indio_dev, > > -

[PATCH v2 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-07 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v2 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-07 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH v2 3/5] staging:iio:hmc5843: register <-> value arrays now can have different lengths

2014-07-07 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek --- drivers

[PATCH v2 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-07 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig| 16

[PATCH v2 1/5] staging:iio:hmc5843: Added regmap support

2014-07-07 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer/hmc5843.c | 139

[PATCH v2 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-07 Thread Josef Gajdusek
This patch series modifies the hmc5843 driver to support the hmc5983 i2c and spi interfaces. Josef Gajdusek (5): staging:iio:hmc5843: Added regmap support staging:iio:hmc5843: Split hmc5843.c to multiple files staging:iio:hmc5843: register <-> value arrays now can have different l

Re: [PATCH 1/5] staging:iio:hmc5843: Added regmap support

2014-07-07 Thread Josef Gajdusek
On Mon, Jul 07, 2014 at 06:00:29PM +0100, Jonathan Cameron wrote: > On 02/07/14 14:50, Josef Gajdusek wrote: > > This patch changes hmc5843.c to use regmap. This provides transparent > > caching > > to the code as well as abstraction necessary to add support for

[PATCH 2/5] staging:iio:hmc5843: Split hmc5843.c to multiple files

2014-07-02 Thread Josef Gajdusek
This patch splits hmc5843.c to multiple files - the interface-agnostic hmc5843_core.c, i2c specific hmc5843_i2c.c and header file hmc5843.h. This is another step to add support of SPI-enabled hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig| 16

[PATCH 1/5] staging:iio:hmc5843: Added regmap support

2014-07-02 Thread Josef Gajdusek
This patch changes hmc5843.c to use regmap. This provides transparent caching to the code as well as abstraction necessary to add support for SPI-based hmc5983. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig | 1 + drivers/staging/iio/magnetometer/hmc5843.c | 145

[PATCH 0/5] staging:iio:hmc5843: Few adjustments and support for hmc5983

2014-07-02 Thread Josef Gajdusek
This patch series modifies the hmc5843 driver to support the hmc5983 i2c and spi interfaces. Josef Gajdusek (5): staging:iio:hmc5843: Added regmap support staging:iio:hmc5843: Split hmc5843.c to multiple files staging:iio:hmc5843: register <-> value arrays now can have different l

[PATCH 4/5] staging:iio:hmc5843: Add support for i2c hmc5983

2014-07-02 Thread Josef Gajdusek
This patch adds support for the hmc5983 i2c interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH 3/5] staging:iio:hmc5843: register <-> value arrays now can have different lengths

2014-07-02 Thread Josef Gajdusek
Changed structure of struct hmc5843_chip_info to include length of translation arrays. Code previously using #defined constant has been changed accordingly. This allows to integrate devices which do have different amounts of available rates/scales. Signed-off-by: Josef Gajdusek --- drivers

[PATCH 5/5] staging:iio:hmc5843: Add support for spi hmc5983

2014-07-02 Thread Josef Gajdusek
This patch adds support for the hmc5983 spi interface. This chip is almost identical to the hmc5883. The difference being added temperature compensation, additional available sample rate (220Hz) and an SPI interface. Signed-off-by: Josef Gajdusek --- drivers/staging/iio/magnetometer/Kconfig

[PATCH] hwmon: (emc1403) Fix missing 'select REGMAP_I2C' in Kconfig

2014-06-25 Thread Josef Gajdusek
In commit 4cab259f, the emc1403 driver was converted to use regmap but the necessary Kconfig option was not added. Signed-off-by: Josef Gajdusek --- diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 08531a1..bdb90a0 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig

Re: [PATCH] acpi/battery: fix wrong value of capacity_now reported by few battery types when fully charged (resend)

2014-06-17 Thread Josef Gajdusek
etects capacity_now > full_charge_capacity, notifies userspace (unless it is the known bug where capacity_now == design_capacity) and trims the value to full_charge_capacity. Signed-off-by: Josef Gajdusek --- > Thinking more about the printk_once(). Perhaps it only needs to be printed &g

Re: [PATCH] acpi/battery: fix wrong value of capacity_now reported by few battery types when fully charged (resend)

2014-06-17 Thread Josef Gajdusek
tempts to detect this bug, notifies userspace and trims the value to full_charge_capacity. Signed-off-by: Josef Gajdusek --- > > But it still is necessary to check if battery->full_charge_capacity is > not ACPI_BATTERY_VALUE_UNKNOWN, isn't it? > Fixed, my mistake. When chan

Re: [PATCH] acpi/battery: fix wrong value of capacity_now reported by few battery types when fully charged (resend)

2014-06-17 Thread Josef Gajdusek
tempts to detect this bug, notifies userspace and trims the value to full_charge_capacity. Signed-off-by: Josef Gajdusek --- Relaxed the check as you suggested and added printk_once. > Why don't you use the > >battery->capacity_now > battery->full_charge_capacity > &

[PATCH] acpi/battery: fix wrong value of capacity_now reported by few battery types when fully charged (resend)

2014-06-12 Thread Josef Gajdusek
tempts to detect this bug and trims capacity_now properly. Signed-off-by: Josef Gajdusek --- Oops, I forgot to sign the previous one. diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index e48fc98..3338dd5 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -532,6 +

[PATCH] acpi/battery: fix wrong value of capacity_now reported by few battery types when fully charged

2014-06-12 Thread Josef Gajdusek
It seems that some batteries (noticed on DELL JYPJ136) assume capacity_now = design_capacity when fully charged. This causes reported capacity to suddenly jump to >full_charge_capacity (and that means capacity reported to userspace is >100% and incorrect) values after 99%. This patch attempts t

Re: [PATCH 0/9] hwmon: (emc1403) Various enhancements

2014-05-12 Thread Josef Gajdusek
Had to fix wrong variable being printed in show_bit(). After that, everything on the 1412 seems to work fine including alarms. - return sprintf(buf, "%d\n", !!(retval & sda->index)); + return sprintf(buf, "%d\n", !!(val & sda->index)); -- To unsubscribe from this list: send the line

[PATCH] drivers/hwmon/emc1403.c: add support for emc14x2

2014-05-12 Thread Josef Gajdusek
Adds support for emc1402/emc1412/emc1422 temperature monitoring chips. This line of sensors does only have 2 channels (internal and external) in comparison to the emc14x3 (3 channels) and emc14x4 (4 channels) lines. Signed-off-by: Josef Gajdusek --- Hello, I modified the patches according to

[PATCH] drivers/hwmon/emc1403.c: add new revision numbers to emc1403_detect()

2014-05-12 Thread Josef Gajdusek
Adds new chip revision numbers to emc1403.c. Altough the datasheet (for emc1412) does not say so directly, it seems to suggest, that chips with revision ID 0x03 exist. Signed-off-by: Josef Gajdusek --- diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index 61d89d6..b2b6a52 100644

[PATCH] drivers/hwmon/emc1403.c: add support for emc1412

2014-05-11 Thread Josef Gajdusek
Adds support for emc1412. --- diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index 90ec117..47a98a7 100644 --- a/drivers/hwmon/emc1403.c +++ b/drivers/hwmon/emc1403.c @@ -40,7 +40,7 @@ struct thermal_data { struct i2c_client *client; - const struct attribute_group

[PATCH] drivers/hwmon/emc1403.c: fix inverted set_hyst()

2014-05-11 Thread Josef Gajdusek
Fixes inverted set_hyst() (i. e. writing 76000 actually set it to 74000) Signed-off-by: Josef Gajdusek --- diff --git a/drivers/hwmon/emc1403.c b/drivers/hwmon/emc1403.c index 90ec117..61d89d6 100644 --- a/drivers/hwmon/emc1403.c +++ b/drivers/hwmon/emc1403.c @@ -163,7 +163,7 @@ static ssize_t

[PATCH] drivers/hwmon: bugfix and support for emc1412 in emc1403.c

2014-05-11 Thread Josef Gajdusek
Adds support for emc1412 to emc1403.c + minor bugfix * Renamed generic thermal_* prefixed names to emc1403_* * Fixed set_hyst being broken (i. e. writing 86000 set hysteresis to 84000) * Added support for emc1412 Signed-off-by: Josef Gajdusek --- diff --git a/drivers/hwmon/emc1403.c b/drivers