Re: [PATCH 2/4] serial: 8250: export serial8250_get_baud_rate()

Andy Shevchenko <[email protected]>
Newsgroups gmane.linux.serial,gmane.linux.drivers.devicetree,gmane.linux.kernel
Organization Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo
Message-ID <[email protected]>
On Thu, Jul 09, 2026 at 10:56:50PM +0200, Christian Marangi wrote:
> Some driver might need to access the current baud rate to correctly
> configure it.
> 
> Export the serial8250_get_baud_rate() function to limit code duplication.

Why?

We have _get_divisor() / _set_divisor() for exactly that purpose, no?

-- 
With Best Regards,
Andy Shevchenko
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.