Re: [PATCH V4 Resend 3/3] mfd: stmpe: Update DT support in stmpe driver

From: Viresh Kumar
Date: Thu Nov 29 2012 - 04:26:59 EST


On 29 November 2012 14:53, Lee Jones <lee.jones@xxxxxxxxxx> wrote:
>> From: Vipul Kumar Samar <vipulkumar.samar@xxxxxx>
>> + /*
>> + * Distinct names of same cell-type within multiple instances of stmpe
>> + * will be guaranteed by DT.
>> + */
>> + pdata->id = -1;
>
> And what if we're not booting with DT?

Then it is responsibility of code creating platform data for stmpe to fill
it appropriately. i.e. If there is only one instance of stmpe on board, then
better pass it as -1, else start counting.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/