diff options
author | Márton Németh <[email protected]> | 2010-01-10 20:52:35 +0100 |
---|---|---|
committer | Jean Delvare <[email protected]> | 2010-01-10 20:52:35 +0100 |
commit | 3dd3a156355e7e6bec0dc9a0bbb6eeecbd965d50 (patch) | |
tree | 3dcc7bd17a057db82055c5c04eca51bca863cffd /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 1fe63ab47a617ee95f562eaa7ddbbc59981ff8c6 (diff) |
hwmon: Make PCI device ids constant
The id_table field of the struct pci_driver is constant in <linux/pci.h>
so it is worth to make pci_device_id also constant.
The semantic match that finds this kind of pattern is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@r@
identifier I1, I2, x;
@@
struct I1 {
...
const struct I2 *x;
...
};
@s@
identifier r.I1, y;
identifier r.x, E;
@@
struct I1 y = {
.x = E,
};
@c@
identifier r.I2;
identifier s.E;
@@
const struct I2 E[] = ... ;
@depends on !c@
identifier r.I2;
identifier s.E;
@@
+ const
struct I2 E[] = ...;
// </smpl>
Signed-off-by: Márton Németh <[email protected]>
Cc: Julia Lawall <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions