mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
i2c-parport: Make template structure const
parport_algo_data is a template so it can be marked const. Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
parent
0be16c3061
commit
bfdcad902f
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue