[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190519205235.GA19630@kunai>
Date: Sun, 19 May 2019 22:52:35 +0200
From: Wolfram Sang <wsa@...-dreams.de>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org,
Bartosz Golaszewski <bgolaszewski@...libre.com>
Subject: Re: [PATCH 1/2] eeprom: at24: use devm_i2c_new_dummy_device()
> Now that it's upstream, use the resource managed version
> of i2c_new_dummy().
That was fast :)
> - dummy_client = i2c_new_dummy(base_client->adapter,
> - base_client->addr + index);
> + dummy_client = devm_i2c_new_dummy_device(dev, base_client->adapter,
> + base_client->addr + index);
> if (!dummy_client) {
Oh well, the confusion starts already :/ devm_i2c_new_dummy_device()
returns an ERR_PTR.
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists