RE: [PATCH]TWL4030 battery driver madc str fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>  	struct twl4030_madc_request req;
> 
>  	req.channels = (1 << 9);
> +	req.do_avg = NULL;
>  	req.method = TWL4030_MADC_SW1;
> +	req.active = NULL;
>  	req.func_cb = NULL;
>  	twl4030_madc_conversion(&req);
>  	temp = (u16)req.rbuf[9];

As per twl4030_madc_request structure 'do_avg' is a u16, and 'active' is an integer. So they should be initialized to 0 instead of NULL.

--
Regards,
Jagadeesh
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux