Lines Matching refs:sensors
156 struct sensor_device_attribute sensors[AEM_NUM_SENSORS]; member
917 struct sensor_device_attribute *sensors = data->sensors; in aem_register_sensors() local
922 sysfs_attr_init(&sensors->dev_attr.attr); in aem_register_sensors()
923 sensors->dev_attr.attr.name = ro->label; in aem_register_sensors()
924 sensors->dev_attr.attr.mode = 0444; in aem_register_sensors()
925 sensors->dev_attr.show = ro->show; in aem_register_sensors()
926 sensors->index = ro->index; in aem_register_sensors()
928 err = device_create_file(dev, &sensors->dev_attr); in aem_register_sensors()
930 sensors->dev_attr.attr.name = NULL; in aem_register_sensors()
933 sensors++; in aem_register_sensors()
939 sysfs_attr_init(&sensors->dev_attr.attr); in aem_register_sensors()
940 sensors->dev_attr.attr.name = rw->label; in aem_register_sensors()
941 sensors->dev_attr.attr.mode = 0644; in aem_register_sensors()
942 sensors->dev_attr.show = rw->show; in aem_register_sensors()
943 sensors->dev_attr.store = rw->set; in aem_register_sensors()
944 sensors->index = rw->index; in aem_register_sensors()
946 err = device_create_file(dev, &sensors->dev_attr); in aem_register_sensors()
948 sensors->dev_attr.attr.name = NULL; in aem_register_sensors()
951 sensors++; in aem_register_sensors()
998 if (!data->sensors[i].dev_attr.attr.name) in aem_remove_sensors()
1001 &data->sensors[i].dev_attr); in aem_remove_sensors()