| #
90aa625c |
| 16-Sep-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
treewide: replace with error() with pr_err()
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in include/linux/compiler-gcc.h
treewide: replace with error() with pr_err()
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in include/linux/compiler-gcc.h:
# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it difficult to fully sync BUILD_BUG macros with Linux. (Notice Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)
Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
// <smpl> @@@@ -error +pr_err (...) // </smpl>
Change-Id: I921807c1770d36a91e692c48ab477558bb2ed0b8 Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Simon Glass <sjg@chromium.org> [trini: Re-run Coccinelle] Signed-off-by: Tom Rini <trini@konsulko.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit 9b643e312d528f291966c1f30b0d90bf3b1d43dc)
show more ...
|
| #
b616835d |
| 13-Jun-2017 |
Keerthy <j-keerthy@ti.com> |
power: regulator: max77686: get_enable should return integer
get_enable should be able to return error values. Hence change the return type to integer.
Signed-off-by: Keerthy <j-keerthy@ti.com> Rev
power: regulator: max77686: get_enable should return integer
get_enable should be able to return error values. Hence change the return type to integer.
Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
ccbbada0 |
| 30-May-2017 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-mmc
|
| #
aae78fa7 |
| 10-May-2017 |
Tom Rini <trini@konsulko.com> |
drivers/power/regulator/max77686.c: Fix comparisons of unsigned expressions
Inside of max77686_buck_volt2hex/max77686_buck_hex2volt/max77686_ldo_volt2hex we check that the value we calculate is >= 0
drivers/power/regulator/max77686.c: Fix comparisons of unsigned expressions
Inside of max77686_buck_volt2hex/max77686_buck_hex2volt/max77686_ldo_volt2hex we check that the value we calculate is >= 0 however we declare 'hex' as unsigned int making these always true. Mark these as 'int' instead. We also move hex_max to int as they are constants that are 0x3f/0xff. Given that the above functions are marked as returning an int, make the variables we assign their return value to also be int to be able to catch the error condition now. Reported by clang-3.8.
Cc: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| #
6d6aecec |
| 17-Jan-2016 |
Tom Rini <trini@konsulko.com> |
power: regulator: max77686: Don't use switch() on bools
With gcc-5.3 we get a warning for using switch() on a bool type. Rewrite these sections as if/else and update the one section that was using 1
power: regulator: max77686: Don't use switch() on bools
With gcc-5.3 we get a warning for using switch() on a bool type. Rewrite these sections as if/else and update the one section that was using 1/0 instead of true/false.
Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
e6b606d6 |
| 09-Aug-2015 |
Simon Glass <sjg@chromium.org> |
dm: pmic: max77686: Correct two typos in a comment
These were pointed out in review but I missed them.
Signed-off-by: Simon Glass <sjg@chromium.org>
|
| #
8640522d |
| 28-Jul-2015 |
Peng Fan <Peng.Fan@freescale.com> |
power: regulator: max77686 correct variable type
The return type of pmic_read and pmic_write is signed int, so correct variable 'ret' from type unsigned int to int.
Signed-off-by: Peng Fan <Peng.Fa
power: regulator: max77686 correct variable type
The return type of pmic_read and pmic_write is signed int, so correct variable 'ret' from type unsigned int to int.
Signed-off-by: Peng Fan <Peng.Fan@freescale.com> Cc: Simon Glass <sjg@chromium.org> Cc: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
ae27120c |
| 06-Aug-2015 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
75a429f1 |
| 03-Aug-2015 |
Simon Glass <sjg@chromium.org> |
dm: pmic: max77686: Support all BUCK regulators
Add support for all BUCK regulators, now that the correct register is accessed for each.
Signed-off-by: Simon Glass <sjg@chromium.org>
|
| #
8c428709 |
| 03-Jul-2015 |
Simon Glass <sjg@chromium.org> |
dm: power: max77686: Correct BUCK register access
Some regulators use the wrong voltage register and thus it is not possible to control them. Fix this.
Signed-off-by: Simon Glass <sjg@chromium.org>
dm: power: max77686: Correct BUCK register access
Some regulators use the wrong voltage register and thus it is not possible to control them. Fix this.
Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
show more ...
|
| #
1757df46 |
| 20-Apr-2015 |
Przemyslaw Marczak <p.marczak@samsung.com> |
dm: regulator: add max77686 regulator driver
This commit adds support to MAX77686 regulator driver, based on a driver model regulator's API. It implements almost all regulator operations, beside tho
dm: regulator: add max77686 regulator driver
This commit adds support to MAX77686 regulator driver, based on a driver model regulator's API. It implements almost all regulator operations, beside those for setting and geting the Current value. For proper bind and operation it requires the MAX77686 PMIC driver.
New file: drivers/power/regulator/max77686.c New config: CONFIG_DM_REGULATOR_MAX77686
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|