Messages in this thread | | | Date | Tue, 20 Jan 2015 11:58:03 +0000 | From | Lee Jones <> | Subject | Re: [PATCH 09/14] mfd: retu: Constify struct regmap_config |
| |
On Mon, 05 Jan 2015, Krzysztof Kozlowski wrote:
> The regmap_config struct may be const because it is not modified by the > driver and regmap_init() accepts pointer to const. > > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> > --- > drivers/mfd/retu-mfd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
> diff --git a/drivers/mfd/retu-mfd.c b/drivers/mfd/retu-mfd.c > index 663f8a37aa6b..2d64430c719b 100644 > --- a/drivers/mfd/retu-mfd.c > +++ b/drivers/mfd/retu-mfd.c > @@ -222,7 +222,7 @@ static struct regmap_bus retu_bus = { > .val_format_endian_default = REGMAP_ENDIAN_NATIVE, > }; > > -static struct regmap_config retu_config = { > +static const struct regmap_config retu_config = { > .reg_bits = 8, > .val_bits = 16, > };
-- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
| |