From: Lee Jones <lee.jones@linaro.org>
To: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 07/14] mfd: mc13xxx: i2c/spi: Constify struct regmap_config
Date: Tue, 20 Jan 2015 11:58:35 +0000 [thread overview]
Message-ID: <20150120115835.GU13701@x1> (raw)
In-Reply-To: <1420448493-9355-7-git-send-email-k.kozlowski@samsung.com>
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/mc13xxx-i2c.c | 2 +-
> drivers/mfd/mc13xxx-spi.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
> diff --git a/drivers/mfd/mc13xxx-i2c.c b/drivers/mfd/mc13xxx-i2c.c
> index ae3addb153a2..68b844811566 100644
> --- a/drivers/mfd/mc13xxx-i2c.c
> +++ b/drivers/mfd/mc13xxx-i2c.c
> @@ -46,7 +46,7 @@ static const struct of_device_id mc13xxx_dt_ids[] = {
> };
> MODULE_DEVICE_TABLE(of, mc13xxx_dt_ids);
>
> -static struct regmap_config mc13xxx_regmap_i2c_config = {
> +static const struct regmap_config mc13xxx_regmap_i2c_config = {
> .reg_bits = 8,
> .val_bits = 24,
>
> diff --git a/drivers/mfd/mc13xxx-spi.c b/drivers/mfd/mc13xxx-spi.c
> index 702925e242c9..58a170e45d88 100644
> --- a/drivers/mfd/mc13xxx-spi.c
> +++ b/drivers/mfd/mc13xxx-spi.c
> @@ -48,7 +48,7 @@ static const struct of_device_id mc13xxx_dt_ids[] = {
> };
> MODULE_DEVICE_TABLE(of, mc13xxx_dt_ids);
>
> -static struct regmap_config mc13xxx_regmap_spi_config = {
> +static const struct regmap_config mc13xxx_regmap_spi_config = {
> .reg_bits = 7,
> .pad_bits = 1,
> .val_bits = 24,
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2015-01-20 11:58 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-05 9:01 [PATCH 01/14] mfd: 88pm860x-core: Constify struct regmap_config Krzysztof Kozlowski
2015-01-05 9:01 ` [PATCH 02/14] mfd: hi6421-pmic: " Krzysztof Kozlowski
2015-01-20 11:56 ` Lee Jones
2015-01-05 9:01 ` [PATCH 03/14] mfd: intel_soc_pmic: " Krzysztof Kozlowski
2015-01-20 11:56 ` Lee Jones
2015-01-05 9:01 ` [PATCH 04/14] mfd: davinci_voicecodec: " Krzysztof Kozlowski
2015-01-20 11:56 ` Lee Jones
2015-01-05 9:01 ` [PATCH 05/14] mfd: lm3533: " Krzysztof Kozlowski
2015-01-20 11:57 ` Lee Jones
2015-01-05 9:01 ` [PATCH 06/14] mfd: max77686: " Krzysztof Kozlowski
2015-01-20 11:57 ` Lee Jones
2015-01-05 9:01 ` [PATCH 07/14] mfd: mc13xxx: i2c/spi: " Krzysztof Kozlowski
2015-01-20 11:58 ` Lee Jones [this message]
2015-01-05 9:01 ` [PATCH 08/14] mfd: pcf50633: " Krzysztof Kozlowski
2015-01-20 11:58 ` Lee Jones
2015-01-05 9:01 ` [PATCH 09/14] mfd: retu: " Krzysztof Kozlowski
2015-01-20 11:58 ` Lee Jones
2015-01-05 9:01 ` [PATCH 10/14] mfd: smsc-ece1099: " Krzysztof Kozlowski
2015-01-20 11:58 ` Lee Jones
2015-01-05 9:01 ` [PATCH 11/14] mfd: tps65217: " Krzysztof Kozlowski
2015-01-06 17:11 ` Tony Lindgren
2015-01-20 11:59 ` Lee Jones
2015-01-05 9:01 ` [PATCH 12/14] mfd: tps65218: " Krzysztof Kozlowski
2015-01-20 11:59 ` Lee Jones
2015-01-05 9:01 ` [PATCH 13/14] mfd: twl-core: Constify struct regmap_config and reg_default array Krzysztof Kozlowski
2015-01-06 17:12 ` Tony Lindgren
2015-01-20 11:59 ` Lee Jones
2015-01-05 9:01 ` [PATCH 14/14] mfd: twl6040: " Krzysztof Kozlowski
2015-01-06 17:12 ` Tony Lindgren
2015-01-20 12:00 ` Lee Jones
2015-01-20 11:54 ` [PATCH 01/14] mfd: 88pm860x-core: Constify struct regmap_config Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150120115835.GU13701@x1 \
--to=lee.jones@linaro.org \
--cc=k.kozlowski@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sameo@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.