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

Configure Feed

Select the types of activity you want to include in your feed.

serdev: Replace all instances of ENOTSUPP with EOPNOTSUPP

This replaces all instances of ENOTSUPP with EOPNOTSUPP since ENOTSUPP
is not a standard error code. This will help maintain consistency in
error codes when new serdev API's are added.

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Neeraj Sanjay Kale and committed by
Luiz Augusto von Dentz
29f93a68 586e154f

+7 -7
+3 -3
drivers/tty/serdev/core.c
··· 366 366 struct serdev_controller *ctrl = serdev->ctrl; 367 367 368 368 if (!ctrl || !ctrl->ops->set_parity) 369 - return -ENOTSUPP; 369 + return -EOPNOTSUPP; 370 370 371 371 return ctrl->ops->set_parity(ctrl, parity); 372 372 } ··· 388 388 struct serdev_controller *ctrl = serdev->ctrl; 389 389 390 390 if (!ctrl || !ctrl->ops->get_tiocm) 391 - return -ENOTSUPP; 391 + return -EOPNOTSUPP; 392 392 393 393 return ctrl->ops->get_tiocm(ctrl); 394 394 } ··· 399 399 struct serdev_controller *ctrl = serdev->ctrl; 400 400 401 401 if (!ctrl || !ctrl->ops->set_tiocm) 402 - return -ENOTSUPP; 402 + return -EOPNOTSUPP; 403 403 404 404 return ctrl->ops->set_tiocm(ctrl, set, clear); 405 405 }
+2 -2
drivers/tty/serdev/serdev-ttyport.c
··· 231 231 struct tty_struct *tty = serport->tty; 232 232 233 233 if (!tty->ops->tiocmget) 234 - return -ENOTSUPP; 234 + return -EOPNOTSUPP; 235 235 236 236 return tty->ops->tiocmget(tty); 237 237 } ··· 242 242 struct tty_struct *tty = serport->tty; 243 243 244 244 if (!tty->ops->tiocmset) 245 - return -ENOTSUPP; 245 + return -EOPNOTSUPP; 246 246 247 247 return tty->ops->tiocmset(tty, set, clear); 248 248 }
+2 -2
include/linux/serdev.h
··· 250 250 static inline void serdev_device_wait_until_sent(struct serdev_device *sdev, long timeout) {} 251 251 static inline int serdev_device_get_tiocm(struct serdev_device *serdev) 252 252 { 253 - return -ENOTSUPP; 253 + return -EOPNOTSUPP; 254 254 } 255 255 static inline int serdev_device_set_tiocm(struct serdev_device *serdev, int set, int clear) 256 256 { 257 - return -ENOTSUPP; 257 + return -EOPNOTSUPP; 258 258 } 259 259 static inline int serdev_device_write(struct serdev_device *sdev, const unsigned char *buf, 260 260 size_t count, unsigned long timeout)