misc: nct: nct1008 Fix warnings
Philip Rakity [Tue, 9 Jul 2013 09:18:53 +0000 (10:18 +0100)]
Bug 1323159

Change-Id: I30224f937b5bb9c6493e9fda84de5be5174d1fe7
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246600
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User

drivers/misc/nct1008.c

index 9bb38fe..d8e8e6b 100644 (file)
@@ -788,7 +788,7 @@ static int nct1008_debuginit(struct nct1008_data *nct)
 {
        int err = 0;
        struct dentry *d;
-       char *name = nct1008_id[nct->chip].name;
+       const char *name = nct1008_id[nct->chip].name;
 
        /* create debugfs by selecting chipid */
        d = debugfs_create_file(name, S_IRUGO, NULL,
@@ -894,7 +894,7 @@ static irqreturn_t nct1008_irq(int irq, void *dev_id)
 static void nct1008_power_control(struct nct1008_data *data, bool is_enable)
 {
        int ret;
-       char *name = nct1008_id[data->chip].name;
+       const char *name = nct1008_id[data->chip].name;
 
        if (!data->nct_reg) {
                data->nct_reg = regulator_get(&data->client->dev, "vdd");
@@ -1059,7 +1059,7 @@ error:
 
 static int __devinit nct1008_configure_irq(struct nct1008_data *data)
 {
-       char *name = nct1008_id[data->chip].name;
+       const char *name = nct1008_id[data->chip].name;
 
        data->workqueue = create_singlethread_workqueue(name);