projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0be16c3
)
i2c-parport: Make template structure const
author
Jean Delvare
<khali@linux-fr.org>
Fri, 21 May 2010 16:40:57 +0000
(18:40 +0200)
committer
Jean Delvare
<khali@linux-fr.org>
Fri, 21 May 2010 16:40:57 +0000
(18:40 +0200)
parport_algo_data is a template so it can be marked const.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-parport.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-parport.c
b/drivers/i2c/busses/i2c-parport.c
index 846583ed476352168bd4bde779adb224cad08470..0eb1515541e72446a4e81e3bf54702bcf0635347 100644
(file)
--- a/
drivers/i2c/busses/i2c-parport.c
+++ b/
drivers/i2c/busses/i2c-parport.c
@@
-137,7
+137,7
@@
static int parport_getsda(void *data)
copied. The attaching code will set getscl to NULL for adapters that
cannot read SCL back, and will also make the data field point to
the parallel port structure. */
-static struct i2c_algo_bit_data parport_algo_data = {
+static
const
struct i2c_algo_bit_data parport_algo_data = {
.setsda = parport_setsda,
.setscl = parport_setscl,
.getsda = parport_getsda,