Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 481e2079 authored by Ferenc Wagner's avatar Ferenc Wagner Committed by Greg Kroah-Hartman
Browse files

driver core: Replace the dangerous to_root_device macro with an inline function



The original macro worked only when applied to variables named 'dev'.
While this could have been fixed by simply renaming the macro argument,
a more type-safe replacement by an inline function is preferred.

Signed-off-by: default avatarFerenc Wagner <wferi@niif.hu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6add7cd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment