Commit 9b4aea5
extcon: Use dev_of_node(dev) instead of dev->of_node
The dev_of_node function should be preferred.
In the result we may drop unneeded NULL check
of the pointer to the device object.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>1 parent 0146f56 commit 9b4aea5
1 file changed
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1423 | 1423 | | |
1424 | 1424 | | |
1425 | 1425 | | |
1426 | | - | |
| 1426 | + | |
1427 | 1427 | | |
1428 | 1428 | | |
1429 | | - | |
1430 | | - | |
1431 | | - | |
1432 | | - | |
| 1429 | + | |
1433 | 1430 | | |
1434 | 1431 | | |
1435 | 1432 | | |
1436 | 1433 | | |
1437 | | - | |
| 1434 | + | |
1438 | 1435 | | |
1439 | | - | |
1440 | | - | |
| 1436 | + | |
1441 | 1437 | | |
1442 | 1438 | | |
1443 | 1439 | | |
| |||
0 commit comments