Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions include/linux/soc/apple/sleep.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,16 @@ struct device;
struct resource;

/*
* A T6050 machine whose device tree describes the firmware-driven sleep. What a
* driver does for that sleep follows the description, not a list of boards.
* With @prop: the description also has that property.
* A device tree that describes the T6050 firmware-driven sleep: an available
* "apple,t6050-sleep" node. What a driver does for that sleep follows the
* description, not a list of boards or SoCs. With @prop: the description also
* has that property.
*/
static inline bool apple_t6050_sleep_property(const char *prop)
{
struct device_node *np;
bool ret;

if (!of_machine_is_compatible("apple,t6050"))
return false;
np = of_find_compatible_node(NULL, NULL, "apple,t6050-sleep");
ret = np && of_device_is_available(np) && (!prop || of_property_read_bool(np, prop));
of_node_put(np);
Expand Down
Loading