unsigned int vert_blanking;
unsigned int sh_delay;
- if (info == NULL)
+ if (!info)
return -EINVAL;
/* pixel clock calculattion */
int ret;
pr_info("%s S\n", __func__);
- if (NULL == dev->platform_data) {
+ if (!dev->platform_data) {
dev_err(&client->dev,
"no camera_sensor_platform_data");
return -ENODEV;
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret = 0;
- if (NULL == dev->platform_data) {
+ if (!dev->platform_data) {
dev_err(&client->dev,
"no camera_sensor_platform_data");
return -ENODEV;
return -EINVAL;
gc0310_info = v4l2_get_subdev_hostdata(sd);
- if (gc0310_info == NULL)
+ if (!gc0310_info)
return -EINVAL;
mutex_lock(&dev->input_lock);
int ret = 0;
pr_info("%s S\n", __func__);
- if (platform_data == NULL)
+ if (!platform_data)
return -ENODEV;
dev->platform_data =
u16 reg_val, reg_val_h, dummy;
int ret;
- if (info == NULL)
+ if (!info)
return -EINVAL;
/* pixel clock calculattion */
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret;
- if (NULL == dev->platform_data) {
+ if (!dev->platform_data) {
dev_err(&client->dev,
"no camera_sensor_platform_data");
return -ENODEV;
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret = 0;
- if (NULL == dev->platform_data) {
+ if (!dev->platform_data) {
dev_err(&client->dev,
"no camera_sensor_platform_data");
return -ENODEV;
int idx;
gc2235_info = v4l2_get_subdev_hostdata(sd);
- if (gc2235_info == NULL)
+ if (!gc2235_info)
return -EINVAL;
if (format->pad)
return -EINVAL;
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret = 0;
- if (platform_data == NULL)
+ if (!platform_data)
return -ENODEV;
dev->platform_data =
u16 reg_val;
int ret;
ov2680_debug(dev, "++++ov2680_get_intg_factor\n");
- if (info == NULL)
+ if (!info)
return -EINVAL;
/* pixel clock */
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret;
- if (NULL == dev->platform_data) {
+ if (!dev->platform_data) {
dev_err(&client->dev,
"no camera_sensor_platform_data");
return -ENODEV;
h_flag = 0;
v_flag = 0;
- if (NULL == dev->platform_data) {
+ if (!dev->platform_data) {
dev_err(&client->dev,
"no camera_sensor_platform_data");
return -ENODEV;
return -EINVAL;
ov2680_info = v4l2_get_subdev_hostdata(sd);
- if (ov2680_info == NULL)
+ if (!ov2680_info)
return -EINVAL;
mutex_lock(&dev->input_lock);
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret = 0;
- if (platform_data == NULL)
+ if (!platform_data)
return -ENODEV;
dev->platform_data =
u16 reg_val;
int ret;
- if (info == NULL)
+ if (!info)
return -EINVAL;
dev = to_ov2722_sensor(sd);
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret;
- if (NULL == dev->platform_data) {
+ if (!dev->platform_data) {
dev_err(&client->dev,
"no camera_sensor_platform_data");
return -ENODEV;
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret = 0;
- if (NULL == dev->platform_data) {
+ if (!dev->platform_data) {
dev_err(&client->dev,
"no camera_sensor_platform_data");
return -ENODEV;
if (!fmt)
return -EINVAL;
ov2722_info = v4l2_get_subdev_hostdata(sd);
- if (ov2722_info == NULL)
+ if (!ov2722_info)
return -EINVAL;
mutex_lock(&dev->input_lock);
struct i2c_client *client = v4l2_get_subdevdata(sd);
int ret = 0;
- if (platform_data == NULL)
+ if (!platform_data)
return -ENODEV;
dev->platform_data =
dev->link_freq = v4l2_ctrl_find(&dev->ctrl_handler, V4L2_CID_LINK_FREQ);
- if (dev->ctrl_handler.error || dev->link_freq == NULL)
+ if (dev->ctrl_handler.error || !dev->link_freq)
return dev->ctrl_handler.error;
dev->sd.ctrl_handler = hdl;