Signed-off-by: Constantine Shulyupin
---
fs/pipe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/pipe.c b/fs/pipe.c
index bb0840e234f3..4990d92b0849 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -34,6 +34,7 @@
* be set by root in /proc/sys/fs/pipe-max-size
*/
unsigned int pipe_max_size
and
fc->max_pages
- add mount option max_pages
Signed-off-by: Constantine Shulyupin
---
fs/fuse/dev.c| 4 ++--
fs/fuse/file.c | 54
fs/fuse/fuse_i.h | 5 -
fs/fuse/inode.c | 14 +
4 files changed, 47 insertions(+),
Signed-off-by: Constantine Shulyupin
---
fs/pipe.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/pipe.c b/fs/pipe.c
index bb0840e234f3..4990d92b0849 100644
--- a/fs/pipe.c
+++ b/fs/pipe.c
@@ -34,6 +34,7 @@
* be set by root in /proc/sys/fs/pipe-max-size
*/
unsigned int pipe_max_size
and
fc->max_pages
- add mount option max_pages
Signed-off-by: Constantine Shulyupin
---
fs/fuse/dev.c| 4 ++--
fs/fuse/file.c | 54
fs/fuse/fuse_i.h | 5 -
fs/fuse/inode.c | 14 +
4 files changed, 47 insertions(+),
be used uninitialized in this
function [-Wmaybe-uninitialized]
Signed-off-by: Constantine Shulyupin
---
drivers/char/random.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 283fe390e878..8e51846d0673 100644
--- a/drivers/char
be used uninitialized in this
function [-Wmaybe-uninitialized]
Signed-off-by: Constantine Shulyupin
---
drivers/char/random.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/random.c b/drivers/char/random.c
index 283fe390e878..8e51846d0673 100644
--- a/drivers/char
Signed-off-by: Constantine Shulyupin
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index b40d702337f2..42c439b5cd6a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7303,6 +7303,7 @@ F:drivers/misc/mic/
F: drivers/dma/mic_x100_dma.c
F
Signed-off-by: Constantine Shulyupin
---
MAINTAINERS | 1 +
1 file changed, 1 insertion(+)
diff --git a/MAINTAINERS b/MAINTAINERS
index b40d702337f2..42c439b5cd6a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7303,6 +7303,7 @@ F:drivers/misc/mic/
F: drivers/dma/mic_x100_dma.c
F
declaration of function ‘readv’;
Signed-off-by: Constantine Shulyupin
---
samples/mic/mpssd/mpssd.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/samples/mic/mpssd/mpssd.c b/samples/mic/mpssd/mpssd.c
index f42ce551bb48..9cddb9cfdc79 100644
--- a/samples/mic/mpssd/mpssd.c
+++ b/samples/mic
declaration of function ‘readv’;
Signed-off-by: Constantine Shulyupin
---
samples/mic/mpssd/mpssd.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/samples/mic/mpssd/mpssd.c b/samples/mic/mpssd/mpssd.c
index f42ce551bb48..9cddb9cfdc79 100644
--- a/samples/mic/mpssd/mpssd.c
+++ b/samples/mic
Signed-off-by: Constantine Shulyupin
---
scripts/tags.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 66f08bb1cce9..412a70cce558 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -245,7 +245,7 @@ exuberant
Signed-off-by: Constantine Shulyupin
---
scripts/tags.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/tags.sh b/scripts/tags.sh
index 66f08bb1cce9..412a70cce558 100755
--- a/scripts/tags.sh
+++ b/scripts/tags.sh
@@ -245,7 +245,7 @@ exuberant
declaration of function ‘readv’;
Signed-off-by: Constantine Shulyupin
---
samples/mic/mpssd/mpssd.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/samples/mic/mpssd/mpssd.c b/samples/mic/mpssd/mpssd.c
index f42ce551bb48..9cddb9cfdc79 100644
--- a/samples/mic/mpssd/mpssd.c
+++ b/samples/mic
declaration of function ‘readv’;
Signed-off-by: Constantine Shulyupin
---
samples/mic/mpssd/mpssd.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/samples/mic/mpssd/mpssd.c b/samples/mic/mpssd/mpssd.c
index f42ce551bb48..9cddb9cfdc79 100644
--- a/samples/mic/mpssd/mpssd.c
+++ b/samples/mic
by pipe_max_size, which was requested in
https://lkml.org/lkml/2012/7/12/32
Changes in v1: https://lkml.org/lkml/2017/8/6/194
- replace FUSE_MAX_PAGES_PER_REQ with
FUSE_DEFAULT_MAX_PAGES_PER_REQ and
fc->max_pages
- add mount option max_pages
Signed-off-by: Constantine Shulyu
by pipe_max_size, which was requested in
https://lkml.org/lkml/2012/7/12/32
Changes in v1: https://lkml.org/lkml/2017/8/6/194
- replace FUSE_MAX_PAGES_PER_REQ with
FUSE_DEFAULT_MAX_PAGES_PER_REQ and
fc->max_pages
- add mount option max_pages
Signed-off-by: Constantine Shulyu
Replace define FUSE_MAX_PAGES_PER_REQ with the configurable
mount parameter max_pages to improve performance.
To utilize the max_pages parameter you must also increase the
value of bufsize in the user mode library.
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
Documen
Replace define FUSE_MAX_PAGES_PER_REQ with the configurable
mount parameter max_pages to improve performance.
To utilize the max_pages parameter you must also increase the
value of bufsize in the user mode library.
Signed-off-by: Constantine Shulyupin
---
Documentation/filesystems/fuse.txt | 5
From: Constantine Shulyupin
Introduced subnodes sensor, fan and peci with properties.
Signed-off-by: Constantine Shulyupin
---
Changed in v9:
- Fixed nuvoton,nct7802-sensor
- Introduced nuvoton,nct7802-vmon, nuvoton,nct7802-fan-in,
nuvoton,nct7802-fan-ctl
Changed in v8:
- added senor type
From: Constantine Shulyupin <co...@makelinux.com>
Introduced subnodes sensor, fan and peci with properties.
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
Changed in v9:
- Fixed nuvoton,nct7802-sensor
- Introduced nuvoton,nct7802-vmon, nuvoton,nct7802-fan-in,
nuvoton
On Thu, Nov 12, 2015 at 7:26 PM, Rob Herring wrote:
> On Mon, Oct 26, 2015 at 10:24:17PM +0200, Constantine Shulyupin wrote:
>> From: Constantine Shulyupin
>> +Optional subnodes:
>> +
>> +Sensor subnodes properties:
>> + - "compatible", a
On Thu, Nov 12, 2015 at 7:26 PM, Rob Herring <r...@kernel.org> wrote:
> On Mon, Oct 26, 2015 at 10:24:17PM +0200, Constantine Shulyupin wrote:
>> From: Constantine Shulyupin <co...@makelinux.com>
>> +Optional subnodes:
>> +
>> +Sensor subnodes properti
From: Constantine Shulyupin
Introduced nct7802_platform_data, nct7802_parse_dt,
nct7802_platform_data_set.
Parsing of DT nodes
- compatible = "nuvoton,nct7802-sensor",
with "sensor-type" = "thermal-diode" | "thermistor" | "voltage"
From: Constantine Shulyupin
Introduced subnodes sensor, fan and peci with properties.
Signed-off-by: Constantine Shulyupin
---
Changed in v8:
- added senor type "local"
- Compatible nodes converted to senor types "vcore", "vcc"
Changed in v7:
- sensors type (t
From: Constantine Shulyupin <co...@makelinux.com>
Introduced subnodes sensor, fan and peci with properties.
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
Changed in v8:
- added senor type "local"
- Compatible nodes converted to senor types "v
From: Constantine Shulyupin <co...@makelinux.com>
Introduced nct7802_platform_data, nct7802_parse_dt,
nct7802_platform_data_set.
Parsing of DT nodes
- compatible = "nuvoton,nct7802-sensor",
with "sensor-type" = "thermal-d
Introduced subnodes sensor, fan and peci with properties.
Signed-off-by: Constantine Shulyupin
---
Changed in v7:
- sensors type (thermistor, thermistor, voltage) and pwm type
selected with type property instead of compatible property.
Changed in v6:
- Removed previous definition.
- Introduced
Introduced subnodes sensor, fan and peci with properties.
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
Changed in v7:
- sensors type (thermistor, thermistor, voltage) and pwm type
selected with type property instead of compatible property.
Changed in v6:
- Removed pr
Introduced subnodes sensor, fan and peci with properties.
Signed-off-by: Constantine Shulyupin
---
Changed in v6:
- Removed previous definition.
- Introduced subnodes sensor, fan and peci with properties.
Changed in v5:
- Fixed typos
Changed in v4:
- Removed registers initialization by names
Introduced subnodes sensor, fan and peci with properties.
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
Changed in v6:
- Removed previous definition.
- Introduced subnodes sensor, fan and peci with properties.
Changed in v5:
- Fixed typos
Changed in v4:
- Removed reg
On Mon, Sep 21, 2015 at 4:51 AM, Rob Herring wrote:
> On Fri, Sep 18, 2015 at 5:36 PM, Constantine Shulyupin
> wrote:
>> Hi,
>>
>> I am designing DT support for a hwmon chip.
>> It has some sensors, each of them can be:
>> - "disabled"
>>
On Mon, Sep 21, 2015 at 4:51 AM, Rob Herring <r...@kernel.org> wrote:
> On Fri, Sep 18, 2015 at 5:36 PM, Constantine Shulyupin
> <co...@makelinux.com> wrote:
>> Hi,
>>
>> I am designing DT support for a hwmon chip.
>> It has some sensors, each of them can
Hi,
I am designing DT support for a hwmon chip.
It has some sensors, each of them can be:
- "disabled"
- "thermal diode"
- "thermistor"
- "voltage"
Four possible options for DT properties format.
Option 1: Separated property for each sensor.
Example nct7802 node:
nct7802 {
Hi,
I am designing DT support for a hwmon chip.
It has some sensors, each of them can be:
- "disabled"
- "thermal diode"
- "thermistor"
- "voltage"
Four possible options for DT properties format.
Option 1: Separated property for each sensor.
Example nct7802 node:
nct7802 {
Introduced properties sensorX-type with string values
"disabled", "thermal diode", "thermistor" and "voltage".
Signed-off-by: Constantine Shulyupin
---
Changed in v2:
- removed tempX_type
- introduced nuvoton,sensorX-type with string values
Changed in v1
://www.nuvoton.com/hq/products/cloud-computing/hardware-monitors/desktop-server-series/nct7802y/
Changed in v2:
- Removed nct7802,reg-init
- Added registers initialization by names
Introduced in v1:
- nct7802,reg-init
Signed-off-by: Constantine Shulyupin
---
.../devicetree/bindings/hwmon/nct7802
://www.nuvoton.com/hq/products/cloud-computing/hardware-monitors/desktop-server-series/nct7802y/
Changed in v2:
- Removed nct7802,reg-init
- Added registers initialization by names
Introduced in v1:
- nct7802,reg-init
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
.../devi
Introduced properties sensorX-type with string values
"disabled", "thermal diode", "thermistor" and "voltage".
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
Changed in v2:
- removed tempX_type
- introduced nuvoton,sensorX-type w
/cloud-computing/hardware-monitors/desktop-server-series/nct7802y/
Changed in v2:
- Removed nct7802,reg-init
- Added registers initialization by names
Introduced in v1:
- nct7802,reg-init
Signed-off-by: Constantine Shulyupin
---
.../devicetree/bindings/hwmon/nct7802.txt | 31
> Sure, but why do you need _raw_ register values?
>
> Why can you not encode this in the DT in a manner that describes what is
> connected to this device, then have the kernel figure out any particular
> values that need to be poked into registers?
>
> That'll be easier to read, and it's far more
>> Add add Device tree bindings for registers
>> which are not covered by hwmon ABI and are required to
>> configure specific HW.
>
> This doesn't really answer my question [1] of why you need these.
>
> We generally don't encode register values unless there's no other way to
> describe the
>> Add add Device tree bindings for registers
>> which are not covered by hwmon ABI and are required to
>> configure specific HW.
>
> This doesn't really answer my question [1] of why you need these.
>
> We generally don't encode register values unless there's no other way to
> describe the
/cloud-computing/hardware-monitors/desktop-server-series/nct7802y/
Changed in v2:
- Removed nct7802,reg-init
- Added registers initialization by names
Introduced in v1:
- nct7802,reg-init
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
.../devicetree/bindings/hwmon/nct78
> Sure, but why do you need _raw_ register values?
>
> Why can you not encode this in the DT in a manner that describes what is
> connected to this device, then have the kernel figure out any particular
> values that need to be poked into registers?
>
> That'll be easier to read, and it's far more
/hardware-monitors/desktop-server-series/nct7802y/
Changed in v2:
- Removed nct7802,reg-init
- Added registers initialization by names
Introduced in v1:
- nct7802,reg-init
Signed-off-by: Constantine Shulyupin
---
.../devicetree/bindings/hwmon/nct7802.txt | 28 ++
1
/hardware-monitors/desktop-server-series/nct7802y/
Changed in v2:
- Removed nct7802,reg-init
- Added registers initialization by names
Introduced in v1:
- nct7802,reg-init
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
.../devicetree/bindings/hwmon/nct7802.txt
Changed in v2:
- Removed nct7802,reg-init
- Added registers initialization by names
Introduced in v1:
- nct7802,reg-init
Signed-off-by: Constantine Shulyupin
---
---
.../devicetree/bindings/hwmon/nct7802.txt | 24 ++
1 file changed, 24 insertions(+)
create mode
Changed in v2:
- Removed nct7802,reg-init
- Added registers initialization by names
Introduced in v1:
- nct7802,reg-init
Signed-off-by: Constantine Shulyupin <co...@makelinux.com>
---
---
.../devicetree/bindings/hwmon/nct7802.txt | 24 ++
1 file chang
reg-init implementation is borowerd from
broadcom,c45-reg-init and marvell,reg-init.
Signed-off-by: Constantine Shulyupin
---
---
.../devicetree/bindings/hwmon/nct7802.txt | 27 ++
1 file changed, 27 insertions(+)
create mode 100644 Documentation/devicetree
reg-init implementation is borowerd from
broadcom,c45-reg-init and marvell,reg-init.
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
---
.../devicetree/bindings/hwmon/nct7802.txt | 27 ++
1 file changed, 27 insertions(+)
create mode 100644 Documentation
Signed-off-by: Constantine Shulyupin
---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 181b53e..449805a 100644
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 181b53e
Signed-off-by: Constantine Shulyupin
---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 181b53e..449805a 100644
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt
b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 181b53e
Signed-off-by: Constantine Shulyupin
---
The first trial.
Question: how to configure local temp4 (EnLTD)?
Allow "temp4_type = <3>" (EnLTD=3-2=1) or "temp4_enable = <1>" or else?
---
.../devicetree/bindings/hwmon/nct7802.txt | 28
.../devicet
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
The first trial.
Question: how to configure local temp4 (EnLTD)?
Allow temp4_type = 3 (EnLTD=3-2=1) or temp4_enable = 1 or else?
---
.../devicetree/bindings/hwmon/nct7802.txt | 28
.../devicetree/bindings/vendor
Introduced REG_PWM, pwm[1..3]_auto_point[1..5]_temp,
pwm[1..3]_auto_point[1..5]_pwm, nct7802_auto_point_attrs,
nct7802_auto_point_group, updated nct7802_regmap_is_volatile
Signed-off-by: Constantine Shulyupin
---
Changed in v5:
- removed URL and fixed typo
Changed in v4:
- fixed expression
Introduced REG_PWM, pwm[1..3]_auto_point[1..5]_temp,
pwm[1..3]_auto_point[1..5]_pwm, nct7802_auto_point_attrs,
nct7802_auto_point_group, updated nct7802_regmap_is_volatile
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
Changed in v5:
- removed URL and fixed typo
Changed in v4
Introduced REG_PWM, pwm[1..3]_auto_point[1..5]_temp,
pwm[1..3]_auto_point[1..5]_pwm, nct7802_auto_point_attrs,
nct7802_auto_point_group, updated nct7802_regmap_is_volatile
Signed-off-by: Constantine Shulyupin
---
Changed in v4:
- fixed expression in nct7802_regmap_is_volatile
- added
)
registers after enabling autopoint mode.
I'll think about validating auto point settings latter.
The next fix I would like is to add OF support, which is more important.
BTW, Guenter, have you TODO list for the driver?
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 130
Introduced REG_PWM, pwm[1..3]_auto_point[1..5]_temp,
pwm[1..3]_auto_point[1..5]_pwm, nct7802_auto_point_attrs,
nct7802_auto_point_group, updated nct7802_regmap_is_volatile
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
Changed in v4:
- fixed expression in nct7802_regmap_is_volatile
)
registers after enabling autopoint mode.
I'll think about validating auto point settings latter.
The next fix I would like is to add OF support, which is more important.
BTW, Guenter, have you TODO list for the driver?
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802
- introduced pwm[1..3]_auto_point[1..5]_temp
and pwm[1..3]_auto_point[1..5]_pwm.
- introduced nct7802_auto_point_is_visible
- used sysfs_update_group in store_pwm_enable
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 179 +++-
1 file
- introduced pwm[1..3]_auto_point[1..5]_temp
and pwm[1..3]_auto_point[1..5]_pwm.
- introduced nct7802_auto_point_is_visible
- used sysfs_update_group in store_pwm_enable
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 179
and replaced with pwm[1..3]_auto_point[1..5]_temp
and pwm[1..3]_auto_point[1..5]_pwm.
- Introduced nct7802_auto_point_is_visible
- added used sysfs_update_group in store_pwm_enable
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 179 +++-
1
and replaced with pwm[1..3]_auto_point[1..5]_temp
and pwm[1..3]_auto_point[1..5]_pwm.
- Introduced nct7802_auto_point_is_visible
- added used sysfs_update_group in store_pwm_enable
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 179
Introduced PWM_REG, TEMP_REG, auto_pointX_temp, auto_pointX_pwm,
nct7802_auto_point_attrs, nct7802_auto_point_group.
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 41 +
1 file changed, 41 insertions(+)
diff --git a/drivers/hwmon
Introduced PWM_REG, TEMP_REG, auto_pointX_temp, auto_pointX_pwm,
nct7802_auto_point_attrs, nct7802_auto_point_group.
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 41 +
1 file changed, 41 insertions(+)
diff --git
Introduced REG_SMARTFAN_EN, SMARTFAN_EN_SHIFT, pwmX_enable,
show_pwm_enable, store_pwm_enable.
Signed-off-by: Constantine Shulyupin
---
Change log:
Fixed in v2:
- Introduced REG_SMARTFAN_EN, SMARTFAN_EN_SHIFT
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 45
Introduced REG_SMARTFAN_EN_BASE, pwmX_enable,
show_pwm_enable, store_pwm_enable.
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 46 ++
1 file changed, 46 insertions(+)
diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon/nct7802.c
Introduced REG_SMARTFAN_EN_BASE, pwmX_enable,
show_pwm_enable, store_pwm_enable.
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 46 ++
1 file changed, 46 insertions(+)
diff --git a/drivers/hwmon/nct7802.c b
Introduced REG_SMARTFAN_EN, SMARTFAN_EN_SHIFT, pwmX_enable,
show_pwm_enable, store_pwm_enable.
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
Change log:
Fixed in v2:
- Introduced REG_SMARTFAN_EN, SMARTFAN_EN_SHIFT
Signed-off-by: Constantine Shulyupin co...@makelinux.com
-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 47 +++
1 file changed, 47 insertions(+)
diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon/nct7802.c
index afa242d..56b6f7b 100644
--- a/drivers/hwmon/nct7802.c
+++ b/drivers/hwmon/nct7802.c
@@ -102,6
Introduced: show_pwm_mode, pwm1_mode, pwm2_mode, pwm2_mode
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon/nct7802.c
index 56b6f7b..16e0d17 100644
Introduced: show_pwm_mode, pwm1_mode, pwm2_mode, pwm2_mode
---
Changelog:
Fixed in v2:
- used SENSOR_DEVICE_ATTR instead of SENSOR_DEVICE_ATTR_2 for pwmX_mode
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 26 ++
1 file changed, 26 insertions
- used kstrtou8 instead kstrtouint
Fixed in v3:
- spilt functions declarations to fit 80 columns
- removed unnecessary initializations
- rearranged variable declarations
- shortened return expression
- renamed store_u8 to store_pwm
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c
Introduced: show_pwm_mode, pwm1_mode, pwm2_mode, pwm2_mode
---
Changelog:
Fixed in v2:
- used SENSOR_DEVICE_ATTR instead of SENSOR_DEVICE_ATTR_2 for pwmX_mode
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 26 ++
1 file changed, 26
-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 47 +++
1 file changed, 47 insertions(+)
diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon/nct7802.c
index afa242d..56b6f7b 100644
--- a/drivers/hwmon/nct7802.c
+++ b/drivers/hwmon
- used kstrtou8 instead kstrtouint
Fixed in v3:
- spilt functions declarations to fit 80 columns
- removed unnecessary initializations
- rearranged variable declarations
- shortened return expression
- renamed store_u8 to store_pwm
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers
Introduced: show_pwm_mode, pwm1_mode, pwm2_mode, pwm2_mode
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon/nct7802.c
index 56b6f7b..16e0d17
Notes:
Some lines intentionally more than 80 characters because wrapping
this lines decreases readability.
The patch was checked with scripts/checkpatch.pl --max-line-length=88
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 47
Notes:
Some lines intentionally more than 80 characters because wrapping
this lines decreases readability.
The patch was checked with scripts/checkpatch.pl --max-line-length=88
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 47
Notes:
Some lines intentionally more than 80 characters because wrapping
this lines decreases readability.
The patch was checked with scripts/checkpatch.pl --max-line-length=88
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 47
Notes:
Some lines intentionally more than 80 characters because wrapping
this lines decreases readability.
The patch was checked with scripts/checkpatch.pl --max-line-length=88
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 47
Notes:
Some lines intentionally more than 80 characters because wrapping
this lines decreases readability.
The patch was checked with scripts/checkpatch.pl --max-line-length=88
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 47
Notes:
Some lines intentionally more than 80 characters because wrapping
this lines decreases readability.
The patch was checked with scripts/checkpatch.pl --max-line-length=88
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 47
tput Value
Location : Index 60h
7.2.92 Fan Control 2 Output Value
Location : Index 61h
7.2.93 Fan Control 3 Output Value
Location : Index 62h
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 45 +
1 file changed, 45 insertions(+)
Value
Location : Index 60h
7.2.92 Fan Control 2 Output Value
Location : Index 61h
7.2.93 Fan Control 3 Output Value
Location : Index 62h
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 45 +
1 file changed, 45
From: const
Sensor type:
3 diode (current mode), MD=1
4 thermistor, MD=2
Reference:
Nuvoton Hardware Monitoring IC NCT7802Y
7.2.32 Mode Selection Register
Location : Index 22h
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 72
From: const co...@makelinux.com
Sensor type:
3 diode (current mode), MD=1
4 thermistor, MD=2
Reference:
Nuvoton Hardware Monitoring IC NCT7802Y
7.2.32 Mode Selection Register
Location : Index 22h
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 72
From: const
Sensor type:
3 diode (current mode), MD=1
4 thermistor, MD=2
Reference:
Nuvoton Hardware Monitoring IC NCT7802Y
7.2.32 Mode Selection Register
Location : Index 22h
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 81
From: const co...@makelinux.com
Sensor type:
3 diode (current mode), MD=1
4 thermistor, MD=2
Reference:
Nuvoton Hardware Monitoring IC NCT7802Y
7.2.32 Mode Selection Register
Location : Index 22h
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 81
From: const
0, 3 - Temperature attributes are hidden
1 - Current mode
2 - Thermistor mode
Reference:
Nuvoton Hardware Monitoring IC NCT7802Y
7.2.32 Mode Selection Register
Location : Index 22h
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 53
From: const
0, 3 - Temperature attributes are hidden
1 - Current mode
2 - Thermistor mode
Reference:
Nuvoton Hardware Monitoring IC NCT7802Y
7.2.32 Mode Selection Register
Location : Index 22h
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 53
From: const co...@makelinux.com
0, 3 - Temperature attributes are hidden
1 - Current mode
2 - Thermistor mode
Reference:
Nuvoton Hardware Monitoring IC NCT7802Y
7.2.32 Mode Selection Register
Location : Index 22h
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon
From: const co...@makelinux.com
0, 3 - Temperature attributes are hidden
1 - Current mode
2 - Thermistor mode
Reference:
Nuvoton Hardware Monitoring IC NCT7802Y
7.2.32 Mode Selection Register
Location : Index 22h
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon
From: const
Excerpt from datasheet:
7.2.32 Mode Selection Register
RTD3_MD : 00=Closed , 01=Reserved , 10=Thermistor mode , 11=Voltage sense
Show temp3 only in Thermistor mode
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
From: const co...@ctera.com
Excerpt from datasheet:
7.2.32 Mode Selection Register
RTD3_MD : 00=Closed , 01=Reserved , 10=Thermistor mode , 11=Voltage sense
Show temp3 only in Thermistor mode
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 2 +-
1 file
From: const
Fixed registers are invisible only when registers' mode is 0
Signed-off-by: Constantine Shulyupin
---
drivers/hwmon/nct7802.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon/nct7802.c
index ec56782..65e40c2 100644
From: const co...@makelinux.com
Fixed registers are invisible only when registers' mode is 0
Signed-off-by: Constantine Shulyupin co...@makelinux.com
---
drivers/hwmon/nct7802.c | 8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/hwmon/nct7802.c b/drivers/hwmon
1 - 100 of 158 matches
Mail list logo