Lines Matching full:sensors

4  * temperature/power/energy sensors and capping functionality.
138 /* Function and buffer to update sensors */
143 * AEM 1.x sensors:
144 * Available sensors:
148 * AEM 2.x sensors:
151 * Two temperature sensors
156 struct sensor_device_attribute sensors[AEM_NUM_SENSORS]; member
210 /* These are used to query sensors */
441 /* Update all AEM1 sensors */
454 /* Update all AEM2 sensors */
580 /* Find sensors */ in aem_init_aem1_inst()
722 /* Find sensors */ in aem_init_aem2_inst()
911 /* Discover sensors on an AEM device */
917 struct sensor_device_attribute *sensors = data->sensors; in aem_register_sensors() local
920 /* Set up read-only sensors */ in aem_register_sensors()
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()
937 /* Set up read-write 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()
966 /* sysfs support functions for AEM2 sensors */
992 /* Remove sensors attached to an AEM device */
998 if (!data->sensors[i].dev_attr.attr.name) in aem_remove_sensors()
1001 &data->sensors[i].dev_attr); in aem_remove_sensors()
1012 /* Description of AEM1 sensors */
1024 /* Description of AEM2 sensors */