Merge tag 'sfi-removal-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / include / uapi / linux / map_to_7segment.h
index 13a06e5..8b02088 100644 (file)
  * In device drivers it is recommended, if required, to make the char map
  * accessible via the sysfs interface using the following scheme:
  *
- * static ssize_t show_map(struct device *dev, char *buf) {
+ * static ssize_t map_seg7_show(struct device *dev,
+ *                             struct device_attribute *attr, char *buf)
+ * {
  *     memcpy(buf, &map_seg7, sizeof(map_seg7));
  *     return sizeof(map_seg7);
  * }
- * static ssize_t store_map(struct device *dev, const char *buf, size_t cnt) {
+ * static ssize_t map_seg7_store(struct device *dev,
+ *                              struct device_attribute *attr, const char *buf,
+ *                              size_t cnt)
+ * {
  *     if(cnt != sizeof(map_seg7))
  *             return -EINVAL;
  *     memcpy(&map_seg7, buf, cnt);
  *     return cnt;
  * }
- * static DEVICE_ATTR(map_seg7, PERMS_RW, show_map, store_map);
+ * static DEVICE_ATTR_RW(map_seg7);
  *
  * History:
  * 2005-05-31  RFC linux-kernel@vger.kernel.org