Lines Matching refs:attr2
178 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(da); in max16065_alarm_show() local
180 int val = data->fault[attr2->nr]; in max16065_alarm_show()
185 val &= (1 << attr2->index); in max16065_alarm_show()
188 MAX16065_FAULT(attr2->nr), val); in max16065_alarm_show()
223 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(da); in max16065_limit_store() local
233 limit = MV_TO_LIMIT(val, data->range[attr2->index]); in max16065_limit_store()
236 data->limit[attr2->nr][attr2->index] in max16065_limit_store()
237 = LIMIT_TO_MV(limit, data->range[attr2->index]); in max16065_limit_store()
239 MAX16065_LIMIT(attr2->nr, attr2->index), in max16065_limit_store()
249 struct sensor_device_attribute_2 *attr2 = to_sensor_dev_attr_2(da); in max16065_limit_show() local
253 data->limit[attr2->nr][attr2->index]); in max16065_limit_show()