summaryrefslogtreecommitdiff
path: root/drivers/grove/lcd_rgb.c
diff options
context:
space:
mode:
authorAndre Guedes <andre.guedes@intel.com>2016-03-10 11:31:02 -0300
committerAnas Nashif <anas.nashif@intel.com>2016-03-16 19:30:04 -0400
commit136d1715882b991c91638a7a746d1974429dc9b5 (patch)
treeb95111a3ac23d7fdb390f86c045a99c176c73641 /drivers/grove/lcd_rgb.c
parentaca7cb1efd3d3df182bb83e1763d047ce6d2d3ac (diff)
drivers: Replace DEV_NOT_CONFIG by -EPERM
This patch replaces all occurences of the macro DEV_NOT_CONFIG by -EPERM at the driver level. This patch is part of the effort to transition from DEV_* codes to errno.h codes. Change-Id: I3054c8aa76319a58a2eec089b8a72bf301c85391 Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Diffstat (limited to 'drivers/grove/lcd_rgb.c')
-rw-r--r--drivers/grove/lcd_rgb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/grove/lcd_rgb.c b/drivers/grove/lcd_rgb.c
index cb23daeff..1157f01e7 100644
--- a/drivers/grove/lcd_rgb.c
+++ b/drivers/grove/lcd_rgb.c
@@ -13,6 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
+#include <errno.h>
+
#include <nanokernel.h>
#include <arch/cpu.h>
@@ -285,7 +288,7 @@ int glcd_initialize(struct device *port)
CONFIG_GROVE_LCD_RGB_I2C_MASTER_DEV_NAME);
if (!dev->i2c) {
- return DEV_NOT_CONFIG;
+ return -EPERM;
}
/*