From: Andy Shevchenko Date: Tue, 20 Nov 2018 19:39:56 +0200 Subject: [U-Boot] [PATCH v2 1/5] serial: Introduce ->getinfo() callback In-Reply-To: References: <20181115175854.7550-1-andriy.shevchenko@linux.intel.com> <20181115175854.7550-2-andriy.shevchenko@linux.intel.com> Message-ID: <20181120173956.GB10650@smile.fi.intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Nov 15, 2018 at 12:22:31PM -0800, Simon Glass wrote: > On 15 November 2018 at 11:51, Andy Shevchenko wrote: > > On Thu, Nov 15, 2018 at 9:46 PM Simon Glass wrote: > >> On 15 November 2018 at 09:58, Andy Shevchenko > >> wrote: > >> > +int serial_getinfo(struct serial_device_info *info) > >> > >> This should use driver model, so: > >> > >> int serial_getinfo(struct udevice *dev, struct serial_device_info *info) > > > > Oh, sure! I have to withdraw this comment based on two points: - the rest of API is using it in this way - it is all about current console IIUC, so, anyway we would need the same code to retrieve it Are you still thinking that serial_getinfo(dev, info) would be preferable? -- With Best Regards, Andy Shevchenko