Greg Kroah-Hartman
63c642ec6b
ANDROID: GKI: device.h: add Android ABI padding to some structures
...
Try to mitigate potential future driver core api changes by padding to
struct bus_type, struct device_driver, struct class, and struct device.
Based on a patch from Michal Marek <mmarek@suse.cz > from the SLES kernel
Bug: 151154716
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com >
Change-Id: I6892cde6481ba775789f0c02239dcfde3a26b56e
2022-05-04 13:39:14 -07:00
Geert Uytterhoeven
5c3db63abd
device.h: Remove bogus "the" in kerneldoc
...
Remove the bogus word "the" from "...once the it is..." in the
documentation describing the "dev_groups" member of the device_driver
structure.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org >
Link: https://lore.kernel.org/r/20210205170608.1956223-1-geert@linux-m68k.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2021-02-09 12:26:40 +01:00
John Stultz
64c775fb4b
driver core: Rename deferred_probe_timeout and make it global
...
Since other subsystems (like regulator) have similar arbitrary
timeouts for how long they try to resolve driver dependencies,
rename deferred_probe_timeout to driver_deferred_probe_timeout
and set it as global, so it can be shared.
Cc: linux-pm@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Thierry Reding <treding@nvidia.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Cc: Saravana Kannan <saravanak@google.com >
Cc: Todd Kjos <tkjos@google.com >
Cc: Len Brown <len.brown@intel.com >
Cc: Pavel Machek <pavel@ucw.cz >
Cc: Ulf Hansson <ulf.hansson@linaro.org >
Cc: Kevin Hilman <khilman@kernel.org >
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net >
Cc: Rob Herring <robh@kernel.org >
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
Signed-off-by: John Stultz <john.stultz@linaro.org >
Link: https://lore.kernel.org/r/20200225050828.56458-6-john.stultz@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-03-04 18:11:44 +01:00
John Stultz
0e9f8d09d2
driver core: Remove driver_deferred_probe_check_state_continue()
...
Now that driver_deferred_probe_check_state() works better, and
we've converted the only user of
driver_deferred_probe_check_state_continue() we can simply
remove it and simplify some of the logic.
Cc: linux-pm@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Thierry Reding <treding@nvidia.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Bjorn Andersson <bjorn.andersson@linaro.org >
Cc: Saravana Kannan <saravanak@google.com >
Cc: Todd Kjos <tkjos@google.com >
Cc: Len Brown <len.brown@intel.com >
Cc: Pavel Machek <pavel@ucw.cz >
Cc: Ulf Hansson <ulf.hansson@linaro.org >
Cc: Kevin Hilman <khilman@kernel.org >
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net >
Cc: Rob Herring <robh@kernel.org >
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org >
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
Signed-off-by: John Stultz <john.stultz@linaro.org >
Link: https://lore.kernel.org/r/20200225050828.56458-5-john.stultz@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2020-03-04 18:11:44 +01:00
Greg Kroah-Hartman
4c002c978b
device.h: move 'struct driver' stuff out to device/driver.h
...
device.h has everything and the kitchen sink when it comes to struct
device things, so split out the struct driver things things to a
separate .h file to make things easier to maintain and manage over time.
Cc: "Rafael J. Wysocki" <rafael@kernel.org >
Cc: Suzuki K Poulose <suzuki.poulose@arm.com >
Cc: Saravana Kannan <saravanak@google.com >
Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com >
Link: https://lore.kernel.org/r/20191209193303.1694546-7-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2019-12-16 10:11:16 +01:00