31 May, 2019
1 commit
-
Based on 1 normalized pattern(s):
licensed under the gpl 2 or later
extracted by the scancode license scanner the SPDX license identifier
GPL-2.0-or-later
has been chosen to replace the boilerplate/reference in 82 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Allison Randal
Reviewed-by: Kate Stewart
Reviewed-by: Richard Fontana
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190524100845.150836982@linutronix.de
Signed-off-by: Greg Kroah-Hartman
01 Feb, 2017
1 commit
-
Declare regulator_ops structure as const as it is only stored in the ops
field of a regulator_desc structure. This field is of type const, so
regulator_ops structures having this property can be made const too.File size before: drivers/regulator/ad5398.o
text data bss dec hex filename
1707 672 0 2379 94b drivers/regulator/ad5398.oFile size after: drivers/regulator/ad5398.o
text data bss dec hex filename
1963 416 0 2379 94b drivers/regulator/ad5398.oSigned-off-by: Bhumika Goyal
Signed-off-by: Mark Brown
20 Feb, 2016
1 commit
-
i2c_master_send() returns the number of bytes written on success.
So current code returns 2 if ad5398_write_reg() success.
This return value is propagated to .set_current_limit, .enable and .disable
callbacks of regulator_ops. This can be a problem, for example, if the
users test if the return value of regulator_set_current_limit() is 0.
Fix it by making ad5398_write_reg() return 0 on success.Signed-off-by: Axel Lin
Acked-by: Michael Hennerich
Signed-off-by: Mark Brown
30 Aug, 2015
1 commit
-
The driver has a I2C device id table that is used to create the modaliases
and also "ad5398-regulator" is not a supported I2C id, so it's never used.Signed-off-by: Javier Martinez Canillas
Signed-off-by: Mark Brown
17 Sep, 2013
1 commit
-
Signed-off-by: Axel Lin
Signed-off-by: Mark Brown
30 Jul, 2013
1 commit
-
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.Signed-off-by: Jingoo Han
Signed-off-by: Mark Brown
20 Nov, 2012
3 commits
-
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown -
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown -
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.Signed-off-by: Bill Pemberton
Signed-off-by: Mark Brown
04 Jul, 2012
1 commit
-
It is ok to request current limit with min_uA < chip->min_uA and
max_uA > chip->max_uA.We need to set min_uA = chip->min_uA if (min_uA < chip->min_uA),
this ensures the equation to calcuate selator does not return negative number.Also set max_uA = chip->max_uA if (max_uA > chip->max_uA), as suggested by
Sonic.Signed-off-by: Axel Lin
Acked-by: Sonic Zhang
Signed-off-by: Mark Brown
09 Apr, 2012
2 commits
-
Rather than adding new arguments to regulator_register() every time we
want to add a new bit of dynamic information at runtime change the function
to take these via a struct. By doing this we avoid needing to do further
changes like the recent addition of device tree support which required each
regulator driver to be updated to take an additional parameter.The regulator_desc which should (mostly) be static data is still passed
separately as most drivers are able to configure this statically at build
time.Signed-off-by: Mark Brown
05 Apr, 2012
1 commit
-
Signed-off-by: Axel Lin
Acked-by: Sonic Zhang
Signed-off-by: Mark Brown
01 Apr, 2012
2 commits
-
Signed-off-by: Axel Lin
Acked-by: Sonic Zhang
Signed-off-by: Mark Brown -
Integer division may truncate the result.
Current code shows changing current is 0mA when selector is 1 ... 8.For example:
selector = 1
ad5398_calc_current returns 117, debug message shows 117/1000 = 0mA
selector = 2
ad5398_calc_current returns 234, debug message shows 234/1000 = 0mA
selector = 3
ad5398_calc_current returns 351, debug message shows 351/1000 = 0mA
............
selector = 8
ad5398_calc_current returns 937, debug message shows 937/1000 = 0mAShow the changing current in uA makes it easier for debugging.
Signed-off-by: Axel Lin
Acked-by: Sonic Zhang
Signed-off-by: Mark Brown
12 Mar, 2012
1 commit
-
Signed-off-by: Axel Lin
Acked-by: Sonic Zhang
Signed-off-by: Mark Brown
24 Nov, 2011
1 commit
-
With device tree support for regulators, its needed that the
regulator_dev->dev device has the right of_node attached.
To be able to do this add an additional parameter to the
regulator_register() api, wherein the dt-adapted driver can
then pass this additional info onto the regulator core.Signed-off-by: Rajendra Nayak
Signed-off-by: Mark Brown
30 Sep, 2010
1 commit
-
A few new i2c-drivers came into the kernel which clear the clientdata-pointer
on exit. This is obsolete meanwhile, so fix it and hope the word will spread.Signed-off-by: Wolfram Sang
Acked-by: Mark Brown
Signed-off-by: Jean Delvare
01 Sep, 2010
1 commit
-
In current implementation, the address return from regulator_register()
is different from the address for regulator_unregister().Signed-off-by: Axel Lin
Acked-by: Sonic Zhang
Acked-by: Mark Brown
Signed-off-by: Liam Girdwood
11 Aug, 2010
2 commits
-
Some systems are likely to want this to be subsys_initcall() to
make sure the regulator is available prior to the consumers.Signed-off-by: Sonic Zhang
Acked-by: Mark Brown
Signed-off-by: Liam Girdwood -
The AD5398 and AD5821 are single 10-bit DAC with 120 mA output current
sink capability. They feature an internal reference and operates from
a single 2.7 V to 5.5 V supply.This driver supports both the AD5398 and the AD5821. It adapts into the
voltage and current framework.Signed-off-by: Sonic Zhang
Signed-off-by: Mike Frysinger
Acked-by: Mark Brown
Signed-off-by: Liam Girdwood