October 2017
Intermediate to advanced
586 pages
14h 8m
English
You should use of_property_read_bool() to read the Boolean property whose name is given in the second argument of the function:
bool my_bool = of_property_read_bool(pdev->dev.of_node, "boolean-property");
If(my_bool){
/* boolean is true */
} else
/* Bolean is false */
}