Changeset 2ef8023 in mainline


Ignore:
Timestamp:
2014-01-02T21:10:17Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fddffb2
Parents:
4942d63
Message:

ehci,ohci,uhci: Make driver structures const

Location:
uspace/drv/bus/usb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/main.c

    r4942d63 r2ef8023  
    8383static int ehci_dev_add(ddf_dev_t *device);
    8484
    85 static driver_ops_t ehci_driver_ops = {
     85static const driver_ops_t ehci_driver_ops = {
    8686        .dev_add = ehci_dev_add,
    8787};
    8888
    89 static driver_t ehci_driver = {
     89static const driver_t ehci_driver = {
    9090        .name = NAME,
    9191        .driver_ops = &ehci_driver_ops
  • uspace/drv/bus/usb/ohci/main.c

    r4942d63 r2ef8023  
    104104}
    105105
    106 static driver_ops_t ohci_driver_ops = {
     106static const driver_ops_t ohci_driver_ops = {
    107107        .dev_add = ohci_dev_add,
    108108};
    109109
    110 static driver_t ohci_driver = {
     110static const driver_t ohci_driver = {
    111111        .name = NAME,
    112112        .driver_ops = &ohci_driver_ops
  • uspace/drv/bus/usb/uhci/main.c

    r4942d63 r2ef8023  
    8484static int uhci_dev_add(ddf_dev_t *device);
    8585
    86 static driver_ops_t uhci_driver_ops = {
     86static const driver_ops_t uhci_driver_ops = {
    8787        .dev_add = uhci_dev_add,
    8888};
    8989
    90 static driver_t uhci_driver = {
     90static const driver_t uhci_driver = {
    9191        .name = NAME,
    9292        .driver_ops = &uhci_driver_ops
Note: See TracChangeset for help on using the changeset viewer.