BMC150_MAGN_REGVAL_TO_REPXY 333 drivers/iio/magnetometer/bmc150_magn.c rep_xy = BMC150_MAGN_REGVAL_TO_REPXY(reg_val); BMC150_MAGN_REGVAL_TO_REPXY 512 drivers/iio/magnetometer/bmc150_magn.c *val = BMC150_MAGN_REGVAL_TO_REPXY(tmp);