D | mma8450.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for Freescale's 3-Axis Accelerometer MMA8450 42 static int mma8450_read(struct i2c_client *c, unsigned int off) in mma8450_read() argument 46 ret = i2c_smbus_read_byte_data(c, off); in mma8450_read() 48 dev_err(&c->dev, in mma8450_read() 50 off, ret); in mma8450_read() 55 static int mma8450_write(struct i2c_client *c, unsigned int off, u8 v) in mma8450_write() argument 59 error = i2c_smbus_write_byte_data(c, off, v); in mma8450_write() 61 dev_err(&c->dev, in mma8450_write() 63 off, error); in mma8450_write() [all …]
|