diff options
author | Bhumika Goyal | 2017-08-19 10:22:12 +0200 |
---|---|---|
committer | Borislav Petkov | 2017-08-20 13:12:32 +0200 |
commit | b2b3e7362ee7014ad9c40c925a4c27a690dbdd77 (patch) | |
tree | dbf604c75d6ab107a4744aeb9892a3622220b348 /drivers/edac/i7core_edac.c | |
parent | EDAC, pnd2: Properly toggle hidden state for P2SB PCI device (diff) | |
download | kernel-qcow2-linux-b2b3e7362ee7014ad9c40c925a4c27a690dbdd77.tar.gz kernel-qcow2-linux-b2b3e7362ee7014ad9c40c925a4c27a690dbdd77.tar.xz kernel-qcow2-linux-b2b3e7362ee7014ad9c40c925a4c27a690dbdd77.zip |
EDAC: Make device_type const
Make these const as they are only stored in the type field of a device
structure, which is const.
Done using Coccinelle.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1503130946-2854-2-git-send-email-bhumirks@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/i7core_edac.c')
-rw-r--r-- | drivers/edac/i7core_edac.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c index d36cc8498084..c16c3b931b3d 100644 --- a/drivers/edac/i7core_edac.c +++ b/drivers/edac/i7core_edac.c @@ -1094,7 +1094,7 @@ static void addrmatch_release(struct device *device) kfree(device); } -static struct device_type addrmatch_type = { +static const struct device_type addrmatch_type = { .groups = addrmatch_groups, .release = addrmatch_release, }; @@ -1125,7 +1125,7 @@ static void all_channel_counts_release(struct device *device) kfree(device); } -static struct device_type all_channel_counts_type = { +static const struct device_type all_channel_counts_type = { .groups = all_channel_counts_groups, .release = all_channel_counts_release, }; |