Patchwork i2c: ismt: remove duplicate const

login
register
mail settings
Submitter Wolfram Sang
Date March 22, 2013, 10:13 a.m.
Message ID <1363947238-5109-1-git-send-email-wsa@the-dreams.de>
Download mbox | patch
Permalink /patch/229959/
State Accepted
Headers show

Comments

Wolfram Sang - March 22, 2013, 10:13 a.m.
(SMATCH) drivers/i2c/busses/i2c-ismt.c:186:14: warning: duplicate const

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
---
 drivers/i2c/busses/i2c-ismt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Neil Horman - March 22, 2013, 1:19 p.m.
On Fri, Mar 22, 2013 at 11:13:58AM +0100, Wolfram Sang wrote:
> (SMATCH) drivers/i2c/busses/i2c-ismt.c:186:14: warning: duplicate const
> 
> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
> ---
>  drivers/i2c/busses/i2c-ismt.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c
> index 130f02c..cd82eb4 100644
> --- a/drivers/i2c/busses/i2c-ismt.c
> +++ b/drivers/i2c/busses/i2c-ismt.c
> @@ -183,7 +183,7 @@ struct ismt_priv {
>  /**
>   * ismt_ids - PCI device IDs supported by this driver
>   */
> -static const DEFINE_PCI_DEVICE_TABLE(ismt_ids) = {
> +static DEFINE_PCI_DEVICE_TABLE(ismt_ids) = {
>  	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_S1200_SMT0) },
>  	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_S1200_SMT1) },
>  	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_AVOTON_SMT) },
> -- 
> 1.7.10.4
> 
> 
Acked-by: Neil Horman <nhorman@tuxdriver.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/i2c/busses/i2c-ismt.c b/drivers/i2c/busses/i2c-ismt.c
index 130f02c..cd82eb4 100644
--- a/drivers/i2c/busses/i2c-ismt.c
+++ b/drivers/i2c/busses/i2c-ismt.c
@@ -183,7 +183,7 @@  struct ismt_priv {
 /**
  * ismt_ids - PCI device IDs supported by this driver
  */
-static const DEFINE_PCI_DEVICE_TABLE(ismt_ids) = {
+static DEFINE_PCI_DEVICE_TABLE(ismt_ids) = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_S1200_SMT0) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_S1200_SMT1) },
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_AVOTON_SMT) },