Ignore:
Timestamp:
2011-01-09T19:52:08Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
36f2b3e
Parents:
8871dba
Message:

Rename iface to ops in driver.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_hw_res.c

    r8871dba rd35ac1d  
    5656};
    5757
    58 static void remote_res_enable_interrupt(device_t *dev, void *iface,
     58static void remote_res_enable_interrupt(device_t *dev, void *ops,
    5959    ipc_callid_t callid, ipc_call_t *call)
    6060{
    61         hw_res_ops_t *ires = (hw_res_ops_t *) iface;
     61        hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops;
    6262       
    63         if (NULL == ires->enable_interrupt)
     63        if (hw_res_ops->enable_interrupt == NULL)
    6464                ipc_answer_0(callid, ENOTSUP);
    65         else if (ires->enable_interrupt(dev))
     65        else if (hw_res_ops->enable_interrupt(dev))
    6666                ipc_answer_0(callid, EOK);
    6767        else
     
    6969}
    7070
    71 static void remote_res_get_resource_list(device_t *dev, void *iface,
     71static void remote_res_get_resource_list(device_t *dev, void *ops,
    7272    ipc_callid_t callid, ipc_call_t *call)
    7373{
    74         hw_res_ops_t *ires = (hw_res_ops_t *) iface;
    75         if (NULL == ires->get_resource_list) {
     74        hw_res_ops_t *hw_res_ops = (hw_res_ops_t *) ops;
     75
     76        if (hw_res_ops->get_resource_list == NULL) {
    7677                ipc_answer_0(callid, ENOTSUP);
    7778                return;
    7879        }
    7980       
    80         hw_resource_list_t *hw_resources = ires->get_resource_list(dev);
     81        hw_resource_list_t *hw_resources = hw_res_ops->get_resource_list(dev);
    8182        if (NULL == hw_resources){
    8283                ipc_answer_0(callid, ENOENT);
Note: See TracChangeset for help on using the changeset viewer.