[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ee2edb43-2353-6655-a95d-ea3f3fb853eb@rambler.ru>
Date: Sun, 30 Apr 2017 08:21:51 +0300
From: "Alex A. Mihaylov" <minimumlaw@...bler.ru>
To: Sebastian Reichel <sre@...nel.org>
Cc: linux-kernel@...r.kernel.org, linux-pm@...r.kernel.org,
zbr@...emap.net
Subject: Re: [PATCH 1/2] Add support for OneWire (W1) devices family 0x26
(MAX17211/MAX17215)
Hi,
>> Slave device provide software layer for access to internal registers
>> MAX17211/MAX17215 chip.
> Please convert this to regmap.There is no generic w1 handler, but you can provide custom
> read/write functions.
I think regmap be overkill for this driver. Here we need access to a
small number of registers. Registers are extremely simple on the
internal device. As a result, the software layer of regmap will only
complicate the readability and understanding of the code. And also
increase the size and time of code execution, and even complicate the
perception.
> Also it would be nice to have this
> based on https://lkml.org/lkml/2017/3/16/604. Then everything
> could go into the power-supply driver.
>
No problems. Once this set of patches will be accepted in the mainline.
Alex.
Powered by blists - more mailing lists