* [PATCH 1/2] nvmem: imx-ocotp: add COMPILE_TEST for proper test coverage
@ 2016-06-02 11:19 Srinivas Kandagatla
2016-06-02 11:19 ` [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning Srinivas Kandagatla
0 siblings, 1 reply; 3+ messages in thread
From: Srinivas Kandagatla @ 2016-06-02 11:19 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Philipp Zabel, Srinivas Kandagatla, Maxime Ripard, linux-kernel
This patch add COMPILE_TEST to imx-ocotp driver so that it can be
compile tested on other platforms with zero day testing.
Also adds HAS_IOMEM dependancy as the users of devm_ioremap_resource()
which are compile-testable should depend on HAS_IOMEM.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
drivers/nvmem/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index 3041d48..8148a04 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -15,7 +15,8 @@ if NVMEM
config NVMEM_IMX_OCOTP
tristate "i.MX6 On-Chip OTP Controller support"
- depends on SOC_IMX6
+ depends on SOC_IMX6 || COMPILE_TEST
+ depends on HAS_IOMEM
help
This is a driver for the On-Chip OTP Controller (OCOTP) available on
i.MX6 SoCs, providing access to 4 Kbits of one-time programmable
--
2.8.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning.
2016-06-02 11:19 [PATCH 1/2] nvmem: imx-ocotp: add COMPILE_TEST for proper test coverage Srinivas Kandagatla
@ 2016-06-02 11:19 ` Srinivas Kandagatla
2016-06-02 12:49 ` Philipp Zabel
0 siblings, 1 reply; 3+ messages in thread
From: Srinivas Kandagatla @ 2016-06-02 11:19 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Philipp Zabel, Srinivas Kandagatla, Maxime Ripard, linux-kernel
This patch fixes below error if the driver is compiled with 64 bit
machine configuration.
"drivers/nvmem/imx-ocotp.c:102:14: warning: assignment makes integer
from pointer without a cast"
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
drivers/nvmem/imx-ocotp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
index a340390..ac27b9b 100644
--- a/drivers/nvmem/imx-ocotp.c
+++ b/drivers/nvmem/imx-ocotp.c
@@ -99,7 +99,7 @@ static int imx_ocotp_probe(struct platform_device *pdev)
return PTR_ERR(priv->clk);
of_id = of_match_device(imx_ocotp_dt_ids, dev);
- priv->nregs = (unsigned int)of_id->data;
+ priv->nregs = (unsigned long)of_id->data;
imx_ocotp_nvmem_config.size = 4 * priv->nregs;
imx_ocotp_nvmem_config.dev = dev;
imx_ocotp_nvmem_config.priv = priv;
--
2.8.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning.
2016-06-02 11:19 ` [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning Srinivas Kandagatla
@ 2016-06-02 12:49 ` Philipp Zabel
0 siblings, 0 replies; 3+ messages in thread
From: Philipp Zabel @ 2016-06-02 12:49 UTC (permalink / raw)
To: Srinivas Kandagatla; +Cc: Greg Kroah-Hartman, Maxime Ripard, linux-kernel
Am Donnerstag, den 02.06.2016, 12:19 +0100 schrieb Srinivas Kandagatla:
> This patch fixes below error if the driver is compiled with 64 bit
> machine configuration.
>
> "drivers/nvmem/imx-ocotp.c:102:14: warning: assignment makes integer
> from pointer without a cast"
>
> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> ---
> drivers/nvmem/imx-ocotp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/nvmem/imx-ocotp.c b/drivers/nvmem/imx-ocotp.c
> index a340390..ac27b9b 100644
> --- a/drivers/nvmem/imx-ocotp.c
> +++ b/drivers/nvmem/imx-ocotp.c
> @@ -99,7 +99,7 @@ static int imx_ocotp_probe(struct platform_device *pdev)
> return PTR_ERR(priv->clk);
>
> of_id = of_match_device(imx_ocotp_dt_ids, dev);
> - priv->nregs = (unsigned int)of_id->data;
> + priv->nregs = (unsigned long)of_id->data;
> imx_ocotp_nvmem_config.size = 4 * priv->nregs;
> imx_ocotp_nvmem_config.dev = dev;
> imx_ocotp_nvmem_config.priv = priv;
Thanks you, both
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
regards
Philipp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-06-02 12:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-02 11:19 [PATCH 1/2] nvmem: imx-ocotp: add COMPILE_TEST for proper test coverage Srinivas Kandagatla
2016-06-02 11:19 ` [PATCH 2/2] nvmem: imx-ocotp: Fix assignment warning Srinivas Kandagatla
2016-06-02 12:49 ` Philipp Zabel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®