On Thu, Apr 17, 2014 at 12:44 PM, Lee Jones <lee.jo...@linaro.org> wrote:
>> +#ifdef CONFIG_OF > > Didn't you say that the only platform using this device is DT only? So > why don't we make the driver depend on OF and get rid of this ugly > #ifdeffery? OK fixing. >> + { >> + .compatible = "st,stmpe2403", >> + .data = (void *)STMPE2403, >> + }, >> + {}, >> +}; > > If none of these stray over 80 chars, I think I'd like to see > of_device_id tables as single line entries OK. >> + if (partnum < 0) >> + partnum = id->driver_data; > > Should this be able to fail and for us to still carry on? Actually yes, to stay compatible with elder device trees that use the trick to just have the node name correspond to the I2C ID instead of using compatible, this needs to be preserved. But I'll add a small nag print about it. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/