Skip to content

Commit 358d9c4

Browse files
QuzarDCQuzarDC
authored andcommitted
maple: Use new MAPLE_FUNC_ANY define.
1 parent 4b645cd commit 358d9c4

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

kernel/arch/dreamcast/hardware/maple/maple_driver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ void maple_attach_callback(uint32_t functions, maple_attach_callback_t cb) {
1212
maple_driver_t *i;
1313

1414
if(!functions)
15-
functions = 0xffffffff;
15+
functions = MAPLE_FUNC_ANY;
1616

1717
LIST_FOREACH(i, &maple_state.driver_list, drv_list) {
1818
if(i->functions & functions) {
@@ -29,7 +29,7 @@ void maple_detach_callback(uint32_t functions, maple_detach_callback_t cb) {
2929
maple_driver_t *i;
3030

3131
if(!functions)
32-
functions = 0xffffffff;
32+
functions = MAPLE_FUNC_ANY;
3333

3434
LIST_FOREACH(i, &maple_state.driver_list, drv_list) {
3535
if(i->functions & functions) {

kernel/arch/dreamcast/include/dc/maple.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ typedef void (*maple_attach_callback_t)(maple_device_t *dev);
760760
maple device that supports functions has been attached.
761761
762762
\param functions The functions maple device must support. Set to
763-
0 to support all maple devices.
763+
0 or MAPLE_FUNC_ANY to support all maple devices.
764764
\param cb The callback to call when the maple is attached.
765765
*/
766766
void maple_attach_callback(uint32_t functions, maple_attach_callback_t cb);
@@ -781,7 +781,7 @@ typedef void (*maple_detach_callback_t)(maple_device_t *dev);
781781
maple device that supports functions has been detached.
782782
783783
\param functions The functions maple device must support. Set to
784-
0 to support all maple devices.
784+
0 or MAPLE_FUNC_ANY to support all maple devices.
785785
\param cb The callback to call when the maple is detached.
786786
*/
787787
void maple_detach_callback(uint32_t functions, maple_detach_callback_t cb);

0 commit comments

Comments
 (0)