Changeset 7d015db0 in rtems


Ignore:
Timestamp:
Mar 31, 2014, 6:39:59 AM (6 years ago)
Author:
Pavel Pisa <ppisa4lists@…>
Branches:
4.10
Children:
f0f2a3d
Parents:
0444c031
git-author:
Pavel Pisa <ppisa4lists@…> (03/31/14 06:39:59)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/27/14 10:00:48)
Message:

SPI SD-Card: adapt common driver code to block devices core API changes.

close #1558

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/i2c/spi-sd-card.c

    r0444c031 r7d015db0  
    12391239static int sd_card_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *arg)
    12401240{
    1241         RTEMS_DEBUG_PRINT( "dev = %u, req = %u, arg = 0x08%x\n", dev, req, arg);
     1241        RTEMS_DEBUG_PRINT( "sd_card_disk_ioctl minor = %u, req = 0x%08x, arg = %p\n",
     1242                        (unsigned)rtems_filesystem_dev_minor_t(dd->dev), (unsigned)req, arg);
    12421243        if (req == RTEMS_BLKIO_REQUEST) {
    12431244                rtems_device_minor_number minor = rtems_disk_get_minor_number( dd);
     
    12681269                return 0;
    12691270        } else {
    1270                 errno = EINVAL;
    1271                 return -1;
     1271                return rtems_blkdev_ioctl( dd, req, arg );
    12721272        }
    12731273}
Note: See TracChangeset for help on using the changeset viewer.