Commit 0007fa1
pwm: Use guards for pwm_lookup_lock instead of explicity mutex_lock + mutex_unlock
With the compiler caring for unlocking the mutex several functions can
be simplified. Benefit from that.
Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://lore.kernel.org/r/28807cb5d9dbce66860f74829c0f57cd9c01373e.1719520143.git.u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <[email protected]>1 parent 4c50c71 commit 0007fa1
1 file changed
+22
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1343 | 1343 | | |
1344 | 1344 | | |
1345 | 1345 | | |
1346 | | - | |
| 1346 | + | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | 1349 | | |
1350 | 1350 | | |
1351 | 1351 | | |
1352 | | - | |
1353 | | - | |
1354 | 1352 | | |
1355 | 1353 | | |
1356 | 1354 | | |
| |||
1360 | 1358 | | |
1361 | 1359 | | |
1362 | 1360 | | |
1363 | | - | |
| 1361 | + | |
1364 | 1362 | | |
1365 | 1363 | | |
1366 | 1364 | | |
1367 | 1365 | | |
1368 | 1366 | | |
1369 | | - | |
1370 | | - | |
1371 | 1367 | | |
1372 | 1368 | | |
1373 | 1369 | | |
| |||
1428 | 1424 | | |
1429 | 1425 | | |
1430 | 1426 | | |
1431 | | - | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
1432 | 1430 | | |
1433 | | - | |
1434 | | - | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
1435 | 1434 | | |
1436 | | - | |
1437 | | - | |
1438 | | - | |
| 1435 | + | |
| 1436 | + | |
1439 | 1437 | | |
1440 | | - | |
1441 | | - | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
1442 | 1441 | | |
1443 | | - | |
1444 | | - | |
1445 | | - | |
| 1442 | + | |
| 1443 | + | |
1446 | 1444 | | |
1447 | | - | |
1448 | | - | |
| 1445 | + | |
| 1446 | + | |
1449 | 1447 | | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
1457 | 1453 | | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | 1454 | | |
1462 | 1455 | | |
1463 | 1456 | | |
| |||
0 commit comments