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

rtc: pcf8523: always compile pcf8523_rtc_ioctl

Compiling out pcf8523_rtc_ioctl saves about 5% of the generated machine
code. However, it certainly never happens as the RTC character device
interface is the most useful one and is probably always compiled in.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211018153651.82069-2-alexandre.belloni@bootlin.com

-4
-4
drivers/rtc/rtc-pcf8523.c
··· 237 237 return 0; 238 238 } 239 239 240 - #ifdef CONFIG_RTC_INTF_DEV 241 240 static int pcf8523_rtc_ioctl(struct device *dev, unsigned int cmd, 242 241 unsigned long arg) 243 242 { ··· 267 268 return -ENOIOCTLCMD; 268 269 } 269 270 } 270 - #else 271 - #define pcf8523_rtc_ioctl NULL 272 - #endif 273 271 274 272 static int pcf8523_rtc_read_offset(struct device *dev, long *offset) 275 273 {