[PATCH v2 4/7] mfd: ssbi: Add regmap read/write helpers
Mark Brown
broonie at kernel.org
Tue Dec 24 07:54:43 EST 2013
On Mon, Dec 23, 2013 at 12:46:00PM -0800, Stephen Boyd wrote:
> +int ssbi_reg_read(void *context, unsigned int reg, unsigned int *val)
> +{
> + *val = 0;
> + return ssbi_read(context, reg, (u8 *)val, 1);
> +}
> +EXPORT_SYMBOL_GPL(ssbi_reg_read);
> +
> +int ssbi_reg_write(void *context, unsigned int reg, unsigned int val)
> +{
> + return ssbi_write(context, reg, (u8 *)&val, 1);
> +}
> +EXPORT_SYMBOL_GPL(ssbi_reg_write);
Not a big deal but could these just be inlined in the headers?
More information about the linux-arm-kernel
mailing list