Home
last modified time | relevance | path

Searched refs:nvram_attr (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/drivers/rtc/
Drtc-ds1742.c60 struct bin_attribute nvram_attr; member
179 sysfs_bin_attr_init(&pdata->nvram_attr); in ds1742_rtc_probe()
180 pdata->nvram_attr.attr.name = "nvram"; in ds1742_rtc_probe()
181 pdata->nvram_attr.attr.mode = S_IRUGO | S_IWUSR; in ds1742_rtc_probe()
182 pdata->nvram_attr.read = ds1742_nvram_read; in ds1742_rtc_probe()
183 pdata->nvram_attr.write = ds1742_nvram_write; in ds1742_rtc_probe()
184 pdata->nvram_attr.size = pdata->size_nvram; in ds1742_rtc_probe()
206 ret = sysfs_create_bin_file(&pdev->dev.kobj, &pdata->nvram_attr); in ds1742_rtc_probe()
209 pdata->nvram_attr.attr.name); in ds1742_rtc_probe()
218 sysfs_remove_bin_file(&pdev->dev.kobj, &pdata->nvram_attr); in ds1742_rtc_remove()
Drtc-rp5c01.c67 struct bin_attribute nvram_attr; member
241 sysfs_bin_attr_init(&priv->nvram_attr); in rp5c01_rtc_probe()
242 priv->nvram_attr.attr.name = "nvram"; in rp5c01_rtc_probe()
243 priv->nvram_attr.attr.mode = S_IRUGO | S_IWUSR; in rp5c01_rtc_probe()
244 priv->nvram_attr.read = rp5c01_nvram_read; in rp5c01_rtc_probe()
245 priv->nvram_attr.write = rp5c01_nvram_write; in rp5c01_rtc_probe()
246 priv->nvram_attr.size = RP5C01_MODE; in rp5c01_rtc_probe()
258 error = sysfs_create_bin_file(&dev->dev.kobj, &priv->nvram_attr); in rp5c01_rtc_probe()
269 sysfs_remove_bin_file(&dev->dev.kobj, &priv->nvram_attr); in rp5c01_rtc_remove()
Drtc-ds1343.c195 static struct bin_attribute nvram_attr = { variable
328 err = device_create_bin_file(dev, &nvram_attr); in ds1343_sysfs_register()
346 device_remove_bin_file(dev, &nvram_attr); in ds1343_sysfs_register()
363 device_remove_bin_file(dev, &nvram_attr); in ds1343_sysfs_unregister()