/* This internal API is used to validate the device structure pointer for null conditions. 
Created on: Jan 3, 2018 Author: Rajkumar.Thiagarajan  */
static int8_t null_ptr_check(const struct isl29035_dev *dev)
/* This internal API is used to validate the device structure pointer for null conditions. 
Created on: Jan 3, 2018 Author: Rajkumar.Thiagarajan  */
static int8_t null_ptr_check(const struct isl29035_dev *dev)
{
    int8_t rslt;
    if ((dev == NULL) || (dev->read == NULL) || (dev->write == NULL) || (dev->delay_ms == NULL)) {
        rslt = ISL29035_E_NULL_PTR;
    } else {
        rslt = ISL29035_OK;
    }
    return rslt;
}