u-boot/drivers/power/regulator
Masahiro Yamada 9b643e312d 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>

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>
2017-10-04 11:59:44 -04:00
..
act8846.c power: regulator: act8846: get_enable should return integer 2017-07-19 19:13:59 +09:00
as3722_regulator.c power: Add a regulator driver for the as3722 PMIC 2017-07-28 12:02:47 -06:00
fixed.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
gpio-regulator.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
Kconfig power: spl: add SPL_DM_REGULATOR_FIXED in Kconfig 2017-10-01 00:33:35 +02:00
lp873x_regulator.c power: regulator: lp873x: get_enable should return integer 2017-07-19 19:13:59 +09:00
lp87565_regulator.c power: regulator: lp87565: get_enable should return integer 2017-07-19 19:13:59 +09:00
Makefile regulator: pbias: Add PBIAS regulator for proper voltage switching on MMC1 2017-09-22 23:23:54 +09:00
max77686.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
palmas_regulator.c regulator: palmas: disable bypass when the LDO is enabled 2017-08-01 11:58:01 +09:00
pbias_regulator.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
pfuze100.c power: regulator: pfuze100: get_enable should return integer 2017-07-19 19:13:59 +09:00
pwm_regulator.c power: pwm_regulator: remove redundant code 2017-07-27 14:59:01 +02:00
regulator-uclass.c regulator: Change get_enable return type to integer from bool 2017-07-19 19:13:59 +09:00
rk8xx.c power: regulator: rk8xx: get_enable should return integer 2017-07-19 19:13:59 +09:00
s5m8767.c power: regulator: s5m8767: get_enable should return integer 2017-07-19 19:13:59 +09:00
sandbox.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
tps65090_regulator.c power: regulator: tps65090: get_enable should return integer 2017-07-19 19:13:59 +09:00