Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/rtc/
Drtc-rp5c01.c67 struct bin_attribute nvram_attr; member
243 sysfs_bin_attr_init(&priv->nvram_attr); in rp5c01_rtc_probe()
244 priv->nvram_attr.attr.name = "nvram"; in rp5c01_rtc_probe()
245 priv->nvram_attr.attr.mode = S_IRUGO | S_IWUSR; in rp5c01_rtc_probe()
246 priv->nvram_attr.read = rp5c01_nvram_read; in rp5c01_rtc_probe()
247 priv->nvram_attr.write = rp5c01_nvram_write; in rp5c01_rtc_probe()
248 priv->nvram_attr.size = RP5C01_MODE; in rp5c01_rtc_probe()
262 error = sysfs_create_bin_file(&dev->dev.kobj, &priv->nvram_attr); in rp5c01_rtc_probe()
282 sysfs_remove_bin_file(&dev->dev.kobj, &priv->nvram_attr); in rp5c01_rtc_remove()
Drtc-ds1742.c61 struct bin_attribute nvram_attr; member
189 sysfs_bin_attr_init(&pdata->nvram_attr); in ds1742_rtc_probe()
190 pdata->nvram_attr.attr.name = "nvram"; in ds1742_rtc_probe()
191 pdata->nvram_attr.attr.mode = S_IRUGO | S_IWUSR; in ds1742_rtc_probe()
192 pdata->nvram_attr.read = ds1742_nvram_read; in ds1742_rtc_probe()
193 pdata->nvram_attr.write = ds1742_nvram_write; in ds1742_rtc_probe()
194 pdata->nvram_attr.size = pdata->size_nvram; in ds1742_rtc_probe()
217 ret = sysfs_create_bin_file(&pdev->dev.kobj, &pdata->nvram_attr); in ds1742_rtc_probe()
229 sysfs_remove_bin_file(&pdev->dev.kobj, &pdata->nvram_attr); in ds1742_rtc_remove()