Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/iio/magnetometer/
Dak8974.c186 struct ak8974 { struct
207 static int ak8974_get_u16_val(struct ak8974 *ak8974, u8 reg, u16 *val) in ak8974_get_u16_val() argument
212 ret = regmap_bulk_read(ak8974->map, reg, &bulk, 2); in ak8974_get_u16_val()
220 static int ak8974_set_u16_val(struct ak8974 *ak8974, u8 reg, u16 val) in ak8974_set_u16_val() argument
224 return regmap_bulk_write(ak8974->map, reg, &bulk, 2); in ak8974_set_u16_val()
227 static int ak8974_set_power(struct ak8974 *ak8974, bool mode) in ak8974_set_power() argument
234 ret = regmap_write(ak8974->map, AK8974_CTRL1, val); in ak8974_set_power()
244 static int ak8974_reset(struct ak8974 *ak8974) in ak8974_reset() argument
249 ret = ak8974_set_power(ak8974, AK8974_PWR_ON); in ak8974_reset()
252 ret = regmap_write(ak8974->map, AK8974_CTRL2, AK8974_CTRL2_RESDEF); in ak8974_reset()
[all …]
DMakefile7 obj-$(CONFIG_AK8974) += ak8974.o
DKconfig21 will be called ak8974.
/Linux-v5.10/Documentation/devicetree/bindings/iio/magnetometer/
Dak8974.txt6 * "asahi-kasei,ak8974"
24 ak8974@f {
25 compatible = "asahi-kasei,ak8974";
/Linux-v5.10/arch/arm/boot/dts/
Dste-href-stuib.dtsi91 ak8974@f {
93 compatible = "asahi-kasei,ak8974";
Dste-href-tvk1281618.dtsi86 ak8974@f {
88 compatible = "asahi-kasei,ak8974";
Dtegra30-asus-nexus7-grouper-common.dtsi868 compatible = "asahi-kasei,ak8974";
/Linux-v5.10/
DMAINTAINERS2802 F: drivers/iio/magnetometer/ak8974.c