aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorLad Prabhakar <[email protected]>2025-01-13 12:26:35 +0000
committerWolfram Sang <[email protected]>2025-01-14 12:01:30 +0000
commite2aa2502e8067527e36dd7a3cad81b2004614a6c (patch)
treecb9a5e167215f8369a2e88b88b11252839b59a49 /net/unix/sysctl_net_unix.c
parenti2c: riic: Introduce a separate variable for IRQ (diff)
downloadkernel-e2aa2502e8067527e36dd7a3cad81b2004614a6c.tar.gz
kernel-e2aa2502e8067527e36dd7a3cad81b2004614a6c.zip
i2c: riic: Use dev_err_probe in probe and riic_init_hw functions
Refactor error handling in the riic_i2c_probe() and riic_init_hw() functions by replacing multiple dev_err() calls with dev_err_probe(). Additionally, update the riic_init_hw() function to use a local `dev` pointer instead of `riic->adapter.dev` for dev_err_probe(), as the I2C adapter is not initialized at this stage. Drop the cast to (unsigned long) in the riic_init_hw() function when printing the bus frequency, and update the error message to display the frequency in Hz, improving clarity. Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Wolfram Sang <[email protected]> Tested-by: Wolfram Sang <[email protected]> Tested-by: Claudiu Beznea <[email protected]> Reviewed-by: Claudiu Beznea <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions