Home
last modified time | relevance | path

Searched refs:ak8974 (Results 1 – 3 of 3) sorted by relevance

/drivers/iio/magnetometer/
Dak8974.c145 struct ak8974 { struct
161 static int ak8974_set_power(struct ak8974 *ak8974, bool mode) in ak8974_set_power() argument
168 ret = regmap_write(ak8974->map, AK8974_CTRL1, val); in ak8974_set_power()
178 static int ak8974_reset(struct ak8974 *ak8974) in ak8974_reset() argument
183 ret = ak8974_set_power(ak8974, AK8974_PWR_ON); in ak8974_reset()
186 ret = regmap_write(ak8974->map, AK8974_CTRL2, AK8974_CTRL2_RESDEF); in ak8974_reset()
189 ret = regmap_write(ak8974->map, AK8974_CTRL3, AK8974_CTRL3_RESDEF); in ak8974_reset()
192 ret = regmap_write(ak8974->map, AK8974_INT_CTRL, in ak8974_reset()
198 return ak8974_set_power(ak8974, AK8974_PWR_OFF); in ak8974_reset()
201 static int ak8974_configure(struct ak8974 *ak8974) in ak8974_configure() argument
[all …]
DMakefile6 obj-$(CONFIG_AK8974) += ak8974.o
DKconfig20 will be called ak8974.