- 22 1月, 2017 1 次提交
-
-
由 Javier Martinez Canillas 提交于
The I2C core always reports a MODALIAS of the form i2c:<foo> even if the device was registered via OF, this means that exporting the OF device ID table device aliases in the module is not needed. But in order to change how the core reports modaliases to user-space, it's better to export it. Before this patch: $ modinfo drivers/hwmon/ltc4151.ko | grep alias alias: i2c:ltc4151 After this patch: $ modinfo drivers/hwmon/ltc4151.ko | grep alias alias: i2c:ltc4151 alias: of:N*T*Clltc,ltc4151C* alias: of:N*T*Clltc,ltc4151 Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 11 1月, 2017 8 次提交
-
-
由 Alexander Koch 提交于
Preserve chip operation mode if no mode is specified via devicetree. This enables operation when chip configuration is done by BIOS/ROMMON. Signed-off-by: NAlexander Koch <mail@alexanderkoch.net> Acked-by: NMichael Hornung <mhornung.linux@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Alexander Koch 提交于
Add support for operation modes 1-3 of the ADC128D818 (see datasheet sec. 8.4.1). These differ in the number and type of the available input signals, requiring the driver to selectively hide sysfs nodes according to the operation mode configured via devicetree. Signed-off-by: NAlexander Koch <mail@alexanderkoch.net> Acked-by: NMichael Hornung <mhornung.linux@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Alexander Koch 提交于
Implement operation mode selection using the optional 'ti,mode' devicetree property (see [1]). The ADC128D818 supports four operation modes differing in the number and type of input readings (see datasheet, sec. 8.4.1), of which mode 0 is the default. We only add handling of the 'ti,mode' property here, the driver still supports nothing else than the default mode 0. [1] Documentation/devicetree/bindings/hwmon/adc128d818.txt Signed-off-by: NAlexander Koch <mail@alexanderkoch.net> Acked-by: NMichael Hornung <mhornung.linux@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Alexander Koch 提交于
Add bindings documentation for the ADC128D818 driver, featuring default I2C properties along with the optional 'mode' property for chip operation mode selection (see datasheet, sec. 8.4.1). Signed-off-by: NAlexander Koch <mail@alexanderkoch.net> Acked-by: NMichael Hornung <mhornung.linux@gmail.com> Acked-by: NRob Herring <robh@kernel.org> [groeck: Fixed whitespace error] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Jeroen De Wachter 提交于
tmp401 separately read/wrote high and low bytes of temperature values while the hardware supports reading/writing those values in one operation. Driver has been modified to use word operations where possible. Tested with a tmp432 sensor on a mips64 platform. Signed-off-by: NJeroen De Wachter <jeroen.de_wachter.ext@nokia.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
Writes into limit attributes can overflow due to multplications and additions with unbound input values. Writing into fan limit attributes can result in a crash with a division by zero if very large values are written and the fan divider is larger than 1. Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
Writes into limit attributes can overflow due to additions and multiplications with unchecked parameters. Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Guenter Roeck 提交于
Writes into voltage limit, temperature limit, temperature hysteresis, and temperature zone attributes can overflow due to unclamped parameters to multiplications, additions, and subtractions. Cc: Juerg Haefliger <juergh@gmail.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
- 03 1月, 2017 31 次提交
-
-
由 Peter A. Bigot 提交于
Expose the per-chip unique identifier so it can be used to identify the sensor producing the measurements. Signed-off-by: NPeter A. Bigot <pab@pabigot.com> Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read only attributes and DEVICE_ATTR_RW for read/write attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-
由 Julia Lawall 提交于
Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
-