24 Sep, 2020
1 commit
-
This driver doesn't use the id information provided by the old i2c
probe function, so it can trivially be converted to the simple
("probe_new") form.Signed-off-by: Stephen Kitt
Link: https://lore.kernel.org/r/20200813162544.1516647-1-steve@sk2.org
Signed-off-by: Guenter Roeck
24 May, 2019
1 commit
-
Based on 1 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license as published by
the free software foundation either version 2 of the license or at
your option any later version this program is distributed in the
hope that it will be useful but without any warranty without even
the implied warranty of merchantability or fitness for a particular
purpose see the gnu general public license for more details you
should have received a copy of the gnu general public license along
with this program if not write to the free software foundation inc
675 mass ave cambridge ma 02139 usaextracted by the scancode license scanner the SPDX license identifier
GPL-2.0-or-later
has been chosen to replace the boilerplate/reference in 441 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Michael Ellerman (powerpc)
Reviewed-by: Richard Fontana
Reviewed-by: Allison Randal
Reviewed-by: Kate Stewart
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190520071858.739733335@linutronix.de
Signed-off-by: Greg Kroah-Hartman
30 Oct, 2017
1 commit
-
The setting of newval to zero is redundant as the following if/else
stanzas will always update newval to a new value. Remove the
redundant setting, cleans up clang build warning:drivers/hwmon/asc7621.c:582:2: warning: Value stored to 'newval' is
never readSigned-off-by: Colin Ian King
Signed-off-by: Guenter Roeck
30 Aug, 2017
1 commit
-
Don't populate the arrays on the stack, instead make them static.
Makes the object code smaller by over 950 bytes:Before:
text data bss dec hex filename
26144 18768 352 45264 b0d0 drivers/hwmon/asc7621.oAfter:
text data bss dec hex filename
25029 18928 352 44309 ad15 drivers/hwmon/asc7621.oSigned-off-by: Colin Ian King
Signed-off-by: Guenter Roeck
04 Aug, 2014
1 commit
-
Map tables are never changed, so it is safe to make them const.
Signed-off-by: Axel Lin
Acked-by: George Joseph
Signed-off-by: Guenter Roeck
05 Apr, 2014
1 commit
-
All hwmon drivers allocate their data structure with some form of
kzalloc, so setting data fields to zero explicitly is a waste of time.Signed-off-by: Jean Delvare
Reviewed-by: Guenter Roeck
14 Oct, 2013
1 commit
-
Semicolons after closing } of conditional blocks are not needed
and can be removed.Signed-off-by: Guenter Roeck
Reviewed-by: Jean Delvare
08 Apr, 2013
1 commit
-
Signed-off-by: Guenter Roeck
26 Jan, 2013
1 commit
-
SENSORS_LIMIT and the generic clamp_val have the same functionality,
and clamp_val is more efficient.This patch reduces text size by 9052 bytes and bss size by 11624 bytes
for x86_64 builds.Signed-off-by: Guenter Roeck
Acked-by: George Joseph
Acked-by: Jean Delvare
22 Jul, 2012
1 commit
-
Convert to use devm_ functions to reduce code size and simplify the code.
Cc: George Joseph
Signed-off-by: Guenter Roeck
Acked-by: George Joseph
19 Mar, 2012
1 commit
-
Cc: George Joseph
Acked-by: George Joseph
Signed-off-by: Guenter Roeck
06 Jan, 2012
1 commit
-
replaced strict_strtol with kstrtol and
replaced strict_strtuol with kstrtuolThis satisfies checkpatch -f
Compile tested only: no warnings or errors givenSigned-off-by: Frans Meulenbroeks
Signed-off-by: Guenter Roeck
29 Oct, 2010
1 commit
-
We can mark normal_i2c const. Almost all drivers do that already, so
fix the 3 remaining ones before they are used as (bad) examples for
new drivers.Signed-off-by: Jean Delvare
Cc: George Joseph
Reviewed-by: Guenter Roeck
15 Aug, 2010
1 commit
-
* The dev variable is never used.
* Detect functions only need to set info->type, not client->name.
* Include the device address in the log message.Signed-off-by: Jean Delvare
Cc: George Joseph
Cc: Ken Milmore
03 Jun, 2010
1 commit
-
I2C drivers can use the clientdata-pointer to point to private data. As I2C
devices are not really unregistered, but merely detached from their driver, it
used to be the drivers obligation to clear this pointer during remove() or a
failed probe(). As a couple of drivers forgot to do this, it was agreed that it
was cleaner if the i2c-core does this clearance when appropriate, as there is
no guarantee for the lifetime of the clientdata-pointer after remove() anyhow.
This feature was added to the core with commit
e4a7b9b04de15f6b63da5ccdd373ffa3057a3681 to fix the faulty drivers.As there is no need anymore to clear the clientdata-pointer, remove all current
occurrences in the drivers to simplify the code and prevent confusion.Signed-off-by: Wolfram Sang
Acked-by: Mark Brown
Acked-by: Greg Kroah-Hartman
Acked-by: Richard Purdie
Acked-by: Dmitry Torokhov
Signed-off-by: Jean Delvare
11 May, 2010
1 commit
-
* Allow fan minimum RPM to be set to zero without triggering alarms.
* Fix voltage scaling arithmetic and correct scale factors.
* Correct fan1-fan4 alarm bit shifts.
* Correct register address for temp3_smoothing_enable.
* Read the alarm registers with high priority.Signed-off-by: Ken Milmore
Signed-off-by: Jean Delvare
06 Mar, 2010
1 commit
-
Hwmon driver for Andigilog aSC7621 family monitoring chips.
Signed-off-by: George Joseph
Acked-by: Hans de Goede
Signed-off-by: Jean Delvare