mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 11:19:37 +00:00
drivers/rtc/rtc-ds1307.c: change sysfs function pointer assignment
The current usage of commas instead of semicolons is not wrong, but affects the readability of the code. Also, the code would break, if someone puts something between those two assignments. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Cc: Austin Boyle <Austin.Boyle@aviatnet.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
7c1b68d4e1
commit
b9c3570737
1 changed files with 2 additions and 2 deletions
|
@ -960,8 +960,8 @@ static int ds1307_probe(struct i2c_client *client,
|
|||
ds1307->nvram->attr.name = "nvram";
|
||||
ds1307->nvram->attr.mode = S_IRUGO | S_IWUSR;
|
||||
sysfs_bin_attr_init(ds1307->nvram);
|
||||
ds1307->nvram->read = ds1307_nvram_read,
|
||||
ds1307->nvram->write = ds1307_nvram_write,
|
||||
ds1307->nvram->read = ds1307_nvram_read;
|
||||
ds1307->nvram->write = ds1307_nvram_write;
|
||||
ds1307->nvram->size = chip->nvram_size;
|
||||
ds1307->nvram_offset = chip->nvram_offset;
|
||||
err = sysfs_create_bin_file(&client->dev.kobj, ds1307->nvram);
|
||||
|
|
Loading…
Reference in a new issue