eeprom: at24: provide and use a helper for releasing dummy i2c clients
This allows us to drop two opencoded for loops. We also don't need to check if the i2c client is NULL before calling i2c_unregister_device(). Signed-off-by: NBartosz Golaszewski <brgl@bgdev.pl> Reviewed-by: NPeter Rosin <peda@axentia.se>
Showing
想要评论请 注册 或 登录