Commit 12fbd67
isdn: capi: make capi_class constant
Since commit 43a7206 ("driver core: class: make class_register() take
a const *"), the driver core allows for struct class to be in read-only
memory, so move the capi_class structure to be declared at build time
placing it into read-only memory, instead of having to be dynamically
allocated at boot time.
Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240305-class_cleanup-isdn-v1-2-6f0edca75b61@marliere.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 479b4bc commit 12fbd67
1 file changed
+12
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
1393 | 1395 | | |
1394 | 1396 | | |
1395 | 1397 | | |
1396 | | - | |
1397 | | - | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
1398 | 1401 | | |
1399 | 1402 | | |
1400 | | - | |
| 1403 | + | |
1401 | 1404 | | |
1402 | 1405 | | |
1403 | | - | |
| 1406 | + | |
1404 | 1407 | | |
1405 | 1408 | | |
1406 | | - | |
1407 | | - | |
| 1409 | + | |
| 1410 | + | |
1408 | 1411 | | |
1409 | 1412 | | |
1410 | 1413 | | |
| |||
1427 | 1430 | | |
1428 | 1431 | | |
1429 | 1432 | | |
1430 | | - | |
1431 | | - | |
| 1433 | + | |
| 1434 | + | |
1432 | 1435 | | |
1433 | 1436 | | |
1434 | 1437 | | |
| |||
0 commit comments