24 Jul, 2020
1 commit
-
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1].[1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
Acked-by: Baruch Siach
Reviewed-by: Jean Delvare
Reviewed-by: Brendan Higgins
Reviewed-by: Gregory CLEMENT
Reviewed-by: Andy Shevchenko
Signed-off-by: Gustavo A. R. Silva
Signed-off-by: Wolfram Sang
29 May, 2020
2 commits
-
Support for 16-bit addresses has been added, so remove it from the todo
list. Also, in the introductory sentence, may clear we talk about "slave
IP cores" to make reading easier.Fixes: 82d514815441 ("i2c-eeprom_slave: Add support for more eeprom models")
Signed-off-by: Wolfram Sang
Signed-off-by: Wolfram Sang -
We have a kzalloced struct, no need to init to 0.
Signed-off-by: Wolfram Sang
Signed-off-by: Wolfram Sang
20 May, 2020
1 commit
-
I don't plan to support every EEPROM type, but the 24c512 ones need a
tiny code update, so let's have that upstream.Reported-by: Patrick Williams
Signed-off-by: Wolfram Sang
Reviewed-by: Patrick Williams
Signed-off-by: Wolfram Sang
26 Apr, 2020
1 commit
-
If the slave eeprom has a "firmware-name" in devicetree, then pre-load
the data in the eeprom with this file. Otherwise we init the eeprom with
0xFF.Signed-off-by: Patrick Williams
Signed-off-by: Björn Ardö
[wsa: some cosmetic changes]
Signed-off-by: Wolfram Sang
10 Mar, 2020
1 commit
-
Use kobj_to_dev() API instead of container_of().
Signed-off-by: chenqiwu
Reviewed-by: Luca Ceresoli
Signed-off-by: Wolfram Sang
29 Sep, 2019
1 commit
-
Add read-only versions of all EEPROMs. These versions are read-only
on the i2c side, but can be written from the sysfs side.Signed-off-by: Björn Ardö
Signed-off-by: Wolfram Sang
06 Sep, 2019
1 commit
-
The behaviour of the EEPROM in the case where we only send an 8bit
address to a 16bit address EEPROM is not defined. Added comment about
that the slave-eeprom might behave differently from how an actual device
does (only one model measured).Reported-by: Wolfram Sang
Signed-off-by: Björn Ardö
Signed-off-by: Wolfram Sang
05 Sep, 2019
1 commit
-
Add a 32 and a 64 kbit memory. These needs 16 bit address
so added support for that as well.Signed-off-by: Björn Ardö
Signed-off-by: Wolfram Sang
05 Jun, 2019
1 commit
-
Based on 1 normalized pattern(s):
this program is free software you can redistribute it and or modify
it under the terms of the gnu general public license as published by
the free software foundation version 2 of the licenseextracted by the scancode license scanner the SPDX license identifier
GPL-2.0-only
has been chosen to replace the boilerplate/reference in 315 file(s).
Signed-off-by: Thomas Gleixner
Reviewed-by: Allison Randal
Reviewed-by: Armijn Hemel
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190531190115.503150771@linutronix.de
Signed-off-by: Greg Kroah-Hartman
10 Aug, 2015
1 commit
-
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.Signed-off-by: Krzysztof Kozlowski
Signed-off-by: Wolfram Sang
31 Jul, 2015
1 commit
-
The change removes redundant sysfs binary file boundary checks,
since this task is already done on caller side in fs/sysfs/file.cNote, on file size overflow read() now returns 0, and this is a
correct and expected EOF notification according to POSIX.Signed-off-by: Vladimir Zapolskiy
Signed-off-by: Wolfram Sang
27 Mar, 2015
2 commits
-
It is a bit subtle when to correctly increase the buffer index when
reading. Make this clearer by adding some more comments and pointers to
the docs.Signed-off-by: Wolfram Sang
Acked-by: Uwe Kleine-König
Signed-off-by: Wolfram Sang -
After more discussion, brave users, and additional datasheet evaluation,
some API updates for the new I2C slave framework became imminent. The
slave events now get some easier to understand naming. Also, the event
handling has been simplified to only need a single call to the slave
callback when an action by the backend is required.Reported-by: Uwe Kleine-König
Signed-off-by: Wolfram Sang
Acked-by: Geert Uytterhoeven
Acked-by: Uwe Kleine-König
Signed-off-by: Wolfram Sang
24 Jan, 2015
1 commit
-
Due to a copy&paste error, the last byte of the shared memory was not
accessible via sysfs.Reported-by: Debora Grosse
Signed-off-by: Wolfram Sang
Acked-by: Laurent Pinchart
Signed-off-by: Wolfram Sang
12 Dec, 2014
1 commit
-
The first user of the i2c-slave interface is an eeprom simulator. It is
a shared memory which can be accessed by the remote master via I2C and
locally via sysfs.Signed-off-by: Wolfram Sang
Signed-off-by: Wolfram Sang