static int rx8025_read_reg(struct i2c_client *client, int number, u8 *value)
{
- int ret = i2c_smbus_read_byte_data(client, (number << 4) | 0x08);
+ int ret = i2c_smbus_read_byte_data(client, number << 4);
if (ret < 0) {
dev_err(&client->dev, "Unable to read register #%d\n", number);
static int rx8025_read_regs(struct i2c_client *client,
int number, u8 length, u8 *values)
{
- int ret = i2c_smbus_read_i2c_block_data(client, (number << 4) | 0x08,
+ int ret = i2c_smbus_read_i2c_block_data(client, number << 4,
length, values);
if (ret != length) {
static int rx8025_write_regs(struct i2c_client *client,
int number, u8 length, u8 *values)
{
- int ret = i2c_smbus_write_i2c_block_data(client, (number << 4) | 0x08,
+ int ret = i2c_smbus_write_i2c_block_data(client, number << 4,
length, values);
if (ret)