From mboxrd@z Thu Jan 1 00:00:00 1970 From: sre@kernel.org (Sebastian Reichel) Date: Thu, 24 Sep 2015 22:39:25 +0200 Subject: [PATCH v2 1/3] drivers: power: twl4030_charger: fix link problems when building as module In-Reply-To: References: <1442953171-19718-1-git-send-email-marek@goldelico.com> <20150922212900.GB15646@earth> Message-ID: <20150924203924.GD3125@earth> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, On Thu, Sep 24, 2015 at 09:09:15PM +0200, Belisko Marek wrote: > On Tue, Sep 22, 2015 at 11:29 PM, Sebastian Reichel wrote: > > On Tue, Sep 22, 2015 at 10:19:29PM +0200, Marek Belisko wrote: > >> If either twl4030_charger or twl4030_madc is configured as MODULE, > >> we get build (link) errors. > >> > >> To solve, the direct call of twl4030_get_madc_conversion() is replaced > >> by a call to iio_read_channel_processed(). > >> > >> Signed-off-by: H. Nikolaus Schaller > >> Signed-off-by: Marek Belisko > >> --- > >> changes from V1: added missing iio_channel_release + document and add new DT bindings > > > > That was fast :) Patchset looks fine to me except for one last > > thing: Let's make the iio-channel optional, so that old DT blobs > > are still supported. Also the IS_REACHABLE(CONFIG_TWL4030_MADC) > > check can be removed, it should no longer be needed with > > iio_read_channel_processed(). > OK I updated driver code to pass when 'vac' property isn't found in > DT. Should I mark it also > in DT bindings or keep it as it was in v2? Thanks. Move it from "Required properties:" to "Optional properties:". Maybe stating, that the feature does not work, if it's not provided. -- Sebastian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: