Ignore:
Timestamp:
2010-05-29T08:37:38Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce89036b
Parents:
692c40cb
Message:

Rename 'device_class' structure to a more appropriate 'device_ops'. The device_class structure has nothing in common with the device classes introduced by the previous commit and it evolved to just a set of callback functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/drivers/rootia32/rootia32.c

    r692c40cb r5159ae9  
    113113
    114114// initialized in root_ia32_init() function
    115 static device_class_t rootia32_child_class;
     115static device_ops_t rootia32_child_ops;
    116116
    117117static bool rootia32_add_child(
     
    140140        add_match_id(&child->match_ids, match_id);     
    141141       
    142         // set class to the device
    143         child->class = &rootia32_child_class;
     142        // set provided operations to the device
     143        child->ops = &rootia32_child_ops;
    144144       
    145145        // register child  device
     
    188188
    189189static void root_ia32_init() {
    190         // initialize child device class               
    191         rootia32_child_class.id = 0;    // TODO
    192         rootia32_child_class.interfaces[HW_RES_DEV_IFACE] = &child_res_iface;
     190        rootia32_child_ops.interfaces[HW_RES_DEV_IFACE] = &child_res_iface;
    193191}
    194192
Note: See TracChangeset for help on using the changeset viewer.