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>
This commit is contained in:
Andre Guedes 2016-03-10 11:31:02 -03:00 committed by Anas Nashif
commit 136d171588
10 changed files with 20 additions and 13 deletions

View file

@ -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;
}
/*