D | phy-isp1301.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/i2c.h> 31 MODULE_DEVICE_TABLE(i2c, isp1301_id); 41 static int __isp1301_write(struct isp1301 *isp, u8 reg, u8 value, u8 clear) in __isp1301_write() argument 43 return i2c_smbus_write_byte_data(isp->client, reg | clear, value); in __isp1301_write() 46 static int isp1301_write(struct isp1301 *isp, u8 reg, u8 value) in isp1301_write() argument 48 return __isp1301_write(isp, reg, value, 0); in isp1301_write() 51 static int isp1301_clear(struct isp1301 *isp, u8 reg, u8 value) in isp1301_clear() argument 53 return __isp1301_write(isp, reg, value, ISP1301_I2C_REG_CLEAR_ADDR); in isp1301_clear() 58 struct isp1301 *isp = phy_to_isp(phy); in isp1301_phy_init() local [all …]
|