/* This API finds the the null error of the device pointer structure. 
This internal API checks null pointer error. */
static uint16_t bma4_null_pointer_check(const struct bma4_dev *dev)
/* This API finds the the null error of the device pointer structure. 
This internal API checks null pointer error. */
static uint16_t bma4_null_pointer_check(const struct bma4_dev *dev)
{
    uint16_t rslt = BMA4_OK;
    if ((dev == NULL) || (dev->bus_read == NULL) || (dev->bus_write == NULL))
        rslt |= BMA4_E_NULL_PTR;
    else
        rslt = BMA4_OK;
    return rslt;
}