Changeset bab6388 in mainline for uspace/drv/test2/test2.c


Ignore:
Timestamp:
2011-02-13T20:23:37Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7df0477e
Parents:
68414f4a
Message:

Small additional cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/test2/test2.c

    r68414f4a rbab6388  
    3838#define NAME "test2"
    3939
    40 static int add_device(device_t *dev);
     40static int test2_add_device(device_t *dev);
    4141
    4242static driver_ops_t driver_ops = {
    43         .add_device = &add_device
     43        .add_device = &test2_add_device
    4444};
    4545
    46 static driver_t the_driver = {
     46static driver_t test2_driver = {
    4747        .name = NAME,
    4848        .driver_ops = &driver_ops
     
    102102}
    103103
    104 static int add_device(device_t *dev)
     104static int test2_add_device(device_t *dev)
    105105{
    106         printf(NAME ": add_device(name=\"%s\", handle=%d)\n",
     106        printf(NAME ": test2_add_device(name=\"%s\", handle=%d)\n",
    107107            dev->name, (int) dev->handle);
    108108
     
    125125{
    126126        printf(NAME ": HelenOS test2 virtual device driver\n");
    127         return driver_main(&the_driver);
     127        return driver_main(&test2_driver);
    128128}
    129129
Note: See TracChangeset for help on using the changeset viewer.