lkml.org 
[lkml]   [2018]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4] rtc: isl12026: Add driver.
From
Date
On 02/16/2018 12:13 PM, Andy Shevchenko wrote:
> On Fri, Feb 16, 2018 at 9:44 PM, David Daney <david.daney@cavium.com> wrote:
>> The ISL12026 is a combination RTC and EEPROM device with I2C
>> interface. The standard RTC driver interface is provided. The EEPROM
>> is accessed via the NVMEM interface via the "eeprom0" directory in the
>> sysfs entry for the device.
>
>> +config RTC_DRV_ISL12026
>> + tristate "Intersil ISL12026"
>
> depends on OF

It doesn't depend on CONFIG_OF, it builds just fine without it.

>
>> +static struct i2c_driver isl12026_driver = {
>> + .driver = {
>> + .name = "rtc-isl12026",
>> + .of_match_table = of_match_ptr(isl12026_dt_match),
>
> /of_match_ptr//


of_match_ptr() needed if we build without CONFIG_OF

>
>> + },
>> + .probe_new = isl12026_probe_new,
>> + .remove = isl12026_remove,
>> +};
>

\
 
 \ /
  Last update: 2018-02-16 22:20    [W:0.082 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site