[U-Boot] [PATCH 15/17] power: twl6035: add palmas PMIC support
Tom Rini
trini at ti.com
Mon Feb 20 18:49:42 CET 2012
On Fri, Feb 17, 2012 at 05:35:31PM +0530, R Sricharan wrote:
> From: Balaji T K <balajitk at ti.com>
>
> palmas/TWL6035 is power IC for omap5 evm boards
>
> Signed-off-by: Balaji T K <balajitk at ti.com>
[snip]
> +++ b/drivers/power/twl6035.c
[snip]
> +#ifdef CONFIG_TWL6035_POWER
Don't need to do that since we only link this file when that is set.
> +/* Functions to read and write from TWL6030 */
> +int twl6035_i2c_write_u8(u8 chip_no, u8 val, u8 reg)
> +{
> + return i2c_write(chip_no, reg, 1, &val, 1);
> +}
> +
> +int twl6035_i2c_read_u8(u8 chip_no, u8 *val, u8 reg)
> +{
> + return i2c_read(chip_no, reg, 1, val, 1);
> +}
Used, exported, OK.
> +/* To align with i2c mw/mr address, reg, val command syntax */
> +static inline int palmas_write_u8(u8 chip_no, u8 reg, u8 val)
> +{
> + return i2c_write(chip_no, reg, 1, &val, 1);
> +}
> +
> +static inline int palmas_read_u8(u8 chip_no, u8 reg, u8 *val)
> +{
> + return i2c_read(chip_no, reg, 1, val, 1);
> +}
Unused and static so this must have warned. To be clear, I expect the
patch series to add no more warnings for omap5_evm. Thanks!
--
Tom
More information about the U-Boot
mailing list