- Nov 04, 2022
-
-
Vaibhav Gupta authored
-
- Oct 24, 2022
-
-
Vaibhav Gupta authored
To use "nvmem_device_get()" we need to find correct name of our nvmem device, which is a very complex job than it seems. The way nvmem-consumer framework is designed, we only have the info about the parent device which is handled by i2c. Thus, there is no non-hackish way we can get the name of our nvmem-device. One pattern which is helpful is that the nvmem framework names its devices by just appending an id to the name of the parent device. So, if the parent device is "2-0050", the nvmem device will be 2-005<id>. The silver lining in our case is that as per FMC standard, we have only one eeprom/nvmem device per i2c handler. Thus, we just need to check that out of all nvmem devices, which one contains the name of our i2c handler. Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Vaibhav Gupta authored
nvmem_device_get() may return an error pointed instead of NULL, thus check for it. Picked from the changes done by Mathis Marion for Oscimp-WRTD project. Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
Dimitris Lampridis authored
Update APIs wherever needed to supposrt linux v5.10.65 as well. Signed-off-by:
Vaibhav Gupta <vaibhav.gupta@cern.ch>
-
- Feb 23, 2022
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
- Jul 29, 2021
-
-
Mathis MARION authored
The function `i2c_new_device` disappeared in kernel 5.8. It is now required to use `i2c_new_client_device`. Error check now requires using `IS_ERR` instead of just cheking for NULL. Signed-off-by:
Gwenhael GOAVEC <gwenhael.goavec@femto-st.fr> Signed-off-by:
Mathis MARION <mathis.marion@grenoble-inp.org>
-
- Nov 26, 2020
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
- Oct 20, 2020
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
- Sep 18, 2019
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-
- Sep 09, 2019
-
-
Federico Vaga authored
Signed-off-by:
Federico Vaga <federico.vaga@cern.ch>
-