Hi Punith
This an example of how you can register your driver.
static struct i2c_board_info i2c_board_info_xx[] = {
{
I2C_BOARD_INFO("i2c_xx", 0x12),
.irq = .....
},
};
static struct platform_device *sw_pdevs[] __initdata = {
...
i2c_register_board_info(?,ARRAY_AND_SIZE(i2c_board_info_xx);
...
}
Yassin jaffer
> On 19 Jun 2014, at 10:49 pm, Puneet B <[email protected]> wrote:
>
> Hi Yassin,
>
> Thanks for your kind reply. But still not able to do probe.
> Here my changes in device.c
>
> struct platform_device tlv320aic3x =
> {
> .name = "tlv320aic3x-codec",
> .id = -1,
> };
> static struct platform_device *sw_pdevs[] __initdata = {
> &debug_uart,
> &sw_dmac_device,
> &sw_pdev_nand,
> &tlv320aic3x,
> };
>
> Kindly let me know , is i am doing correct.
>
> Regards
> Punith
> --
> You received this message because you are subscribed to the Google Groups
> "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.