Lines Matching refs:s_attr

89 	struct sensor_device_attribute s_attr;  member
285 iattr->s_attr.dev_attr.attr.name = iattr->name; in i5k_amb_hwmon_init()
286 iattr->s_attr.dev_attr.attr.mode = 0444; in i5k_amb_hwmon_init()
287 iattr->s_attr.dev_attr.show = show_label; in i5k_amb_hwmon_init()
288 iattr->s_attr.index = k; in i5k_amb_hwmon_init()
289 sysfs_attr_init(&iattr->s_attr.dev_attr.attr); in i5k_amb_hwmon_init()
291 &iattr->s_attr.dev_attr); in i5k_amb_hwmon_init()
300 iattr->s_attr.dev_attr.attr.name = iattr->name; in i5k_amb_hwmon_init()
301 iattr->s_attr.dev_attr.attr.mode = 0444; in i5k_amb_hwmon_init()
302 iattr->s_attr.dev_attr.show = show_amb_temp; in i5k_amb_hwmon_init()
303 iattr->s_attr.index = k; in i5k_amb_hwmon_init()
304 sysfs_attr_init(&iattr->s_attr.dev_attr.attr); in i5k_amb_hwmon_init()
306 &iattr->s_attr.dev_attr); in i5k_amb_hwmon_init()
315 iattr->s_attr.dev_attr.attr.name = iattr->name; in i5k_amb_hwmon_init()
316 iattr->s_attr.dev_attr.attr.mode = 0644; in i5k_amb_hwmon_init()
317 iattr->s_attr.dev_attr.show = show_amb_min; in i5k_amb_hwmon_init()
318 iattr->s_attr.dev_attr.store = store_amb_min; in i5k_amb_hwmon_init()
319 iattr->s_attr.index = k; in i5k_amb_hwmon_init()
320 sysfs_attr_init(&iattr->s_attr.dev_attr.attr); in i5k_amb_hwmon_init()
322 &iattr->s_attr.dev_attr); in i5k_amb_hwmon_init()
331 iattr->s_attr.dev_attr.attr.name = iattr->name; in i5k_amb_hwmon_init()
332 iattr->s_attr.dev_attr.attr.mode = 0644; in i5k_amb_hwmon_init()
333 iattr->s_attr.dev_attr.show = show_amb_mid; in i5k_amb_hwmon_init()
334 iattr->s_attr.dev_attr.store = store_amb_mid; in i5k_amb_hwmon_init()
335 iattr->s_attr.index = k; in i5k_amb_hwmon_init()
336 sysfs_attr_init(&iattr->s_attr.dev_attr.attr); in i5k_amb_hwmon_init()
338 &iattr->s_attr.dev_attr); in i5k_amb_hwmon_init()
347 iattr->s_attr.dev_attr.attr.name = iattr->name; in i5k_amb_hwmon_init()
348 iattr->s_attr.dev_attr.attr.mode = 0644; in i5k_amb_hwmon_init()
349 iattr->s_attr.dev_attr.show = show_amb_max; in i5k_amb_hwmon_init()
350 iattr->s_attr.dev_attr.store = store_amb_max; in i5k_amb_hwmon_init()
351 iattr->s_attr.index = k; in i5k_amb_hwmon_init()
352 sysfs_attr_init(&iattr->s_attr.dev_attr.attr); in i5k_amb_hwmon_init()
354 &iattr->s_attr.dev_attr); in i5k_amb_hwmon_init()
363 iattr->s_attr.dev_attr.attr.name = iattr->name; in i5k_amb_hwmon_init()
364 iattr->s_attr.dev_attr.attr.mode = 0444; in i5k_amb_hwmon_init()
365 iattr->s_attr.dev_attr.show = show_amb_alarm; in i5k_amb_hwmon_init()
366 iattr->s_attr.index = k; in i5k_amb_hwmon_init()
367 sysfs_attr_init(&iattr->s_attr.dev_attr.attr); in i5k_amb_hwmon_init()
369 &iattr->s_attr.dev_attr); in i5k_amb_hwmon_init()
391 device_remove_file(&pdev->dev, &data->attrs[i].s_attr.dev_attr); in i5k_amb_hwmon_init()
566 device_remove_file(&pdev->dev, &data->attrs[i].s_attr.dev_attr); in i5k_amb_remove()