[PATCH v6 001/164] pwm: Provide an inline function to get the parent device of a given chip

Greg Kroah-Hartman gregkh at linuxfoundation.org
Wed Feb 14 02:39:25 PST 2024


On Wed, Feb 14, 2024 at 10:30:48AM +0100, Uwe Kleine-König wrote:
> Currently a pwm_chip stores in its struct device *dev member a pointer
> to the parent device. Preparing a change that embeds a full struct
> device in struct pwm_chip, this accessor function should be used in all
> drivers directly accessing chip->dev now. This way struct pwm_chip and
> this new function can be changed without having to touch all drivers in
> the same change set.
> 
> Make use of this function in the framework's core sources.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>

Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>



More information about the Linux-mediatek mailing list