File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ EXPORT_SYMBOL(of_device_is_compatible);
561
561
* a NULL terminated array of strings. Returns the best match
562
562
* score or 0.
563
563
*/
564
- int of_device_compatible_match (struct device_node * device ,
564
+ int of_device_compatible_match (const struct device_node * device ,
565
565
const char * const * compat )
566
566
{
567
567
unsigned int tmp , score = 0 ;
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ extern int of_property_read_string_helper(const struct device_node *np,
342
342
const char * * out_strs , size_t sz , int index );
343
343
extern int of_device_is_compatible (const struct device_node * device ,
344
344
const char * );
345
- extern int of_device_compatible_match (struct device_node * device ,
345
+ extern int of_device_compatible_match (const struct device_node * device ,
346
346
const char * const * compat );
347
347
extern bool of_device_is_available (const struct device_node * device );
348
348
extern bool of_device_is_big_endian (const struct device_node * device );
@@ -562,7 +562,7 @@ static inline int of_device_is_compatible(const struct device_node *device,
562
562
return 0 ;
563
563
}
564
564
565
- static inline int of_device_compatible_match (struct device_node * device ,
565
+ static inline int of_device_compatible_match (const struct device_node * device ,
566
566
const char * const * compat )
567
567
{
568
568
return 0 ;
You can’t perform that action at this time.
0 commit comments