drivers: Replace DEV_NO_SUPPORT by -ENODEV

This patch replaces all occurences of the macro DEV_NO_SUPPORT by
-ENODEV at the driver level. So this patch touch the files under
drivers/, include/ and samples/drivers/ when applicable.

This patch is part of the effort to transition from DEV_* codes to
errno.h codes.

Change-Id: I03007527367b03e6fd72a85004b7d3b81046a6a6
Signed-off-by: Andre Guedes <andre.guedes@intel.com>
This commit is contained in:
Andre Guedes 2016-03-10 11:26:27 -03:00 committed by Anas Nashif
commit aca7cb1efd
4 changed files with 11 additions and 9 deletions

View file

@ -268,12 +268,12 @@ static inline int gpio_qmsi_disable_callback(struct device *port, int access_op,
static inline int gpio_qmsi_suspend_port(struct device *port)
{
return DEV_NO_SUPPORT;
return -ENODEV;
}
static inline int gpio_qmsi_resume_port(struct device *port)
{
return DEV_NO_SUPPORT;
return -ENODEV;
}
static struct gpio_driver_api api_funcs = {