[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200918210911.GF52206@kunai>
Date: Fri, 18 Sep 2020 23:09:11 +0200
From: <wsa@...nel.org>
To: Tian Tao <tiantao6@...ilicon.com>
Cc: <linux-i2c@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linuxarm@...wei.com>
Subject: Re: [PATCH] i2c: Switch to using the new API kobj_to_dev()
> static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj)
> {
> - struct device * const dev = container_of(kobj, struct device, kobj);
> + struct device * const dev = kobj_to_dev(kobj);
> return to_i2c_client(dev);
Can't we make this a oneliner then merging the last two lines?
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists