Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fbdev: uvesafb: remove DRIVER_ATTR() usage

It's better to be explicit and use the DRIVER_ATTR_RW() macro when
defining a driver's sysfs file. Bonus is this fixes up a checkpatch.pl
warning.

This is part of a series to drop DRIVER_ATTR() from the tree entirely.

Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

+3 -4
+3 -4
drivers/video/fbdev/uvesafb.c
··· 1860 1860 } 1861 1861 #endif /* !MODULE */ 1862 1862 1863 - static ssize_t show_v86d(struct device_driver *dev, char *buf) 1863 + static ssize_t v86d_show(struct device_driver *dev, char *buf) 1864 1864 { 1865 1865 return snprintf(buf, PAGE_SIZE, "%s\n", v86d_path); 1866 1866 } 1867 1867 1868 - static ssize_t store_v86d(struct device_driver *dev, const char *buf, 1868 + static ssize_t v86d_store(struct device_driver *dev, const char *buf, 1869 1869 size_t count) 1870 1870 { 1871 1871 strncpy(v86d_path, buf, PATH_MAX); 1872 1872 return count; 1873 1873 } 1874 - 1875 - static DRIVER_ATTR(v86d, S_IRUGO | S_IWUSR, show_v86d, store_v86d); 1874 + static DRIVER_ATTR_RW(v86d); 1876 1875 1877 1876 static int uvesafb_init(void) 1878 1877 {