lkml.org 
[lkml]   [2011]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [RFC PATCH] input: Add wiichuck driver
    Date
    Am Donnerstag, 12. Mai 2011, 06:29:44 schrieb Grant Likely:
    > +static void wiichuck_poll(struct input_polled_dev *poll_dev)
    > +{
    > + struct wiichuck_device *wiichuck = poll_dev->private;
    > + struct i2c_client *i2c = wiichuck->i2c_client;
    > + static uint8_t cmd_byte = 0;
    > + struct i2c_msg cmd_msg =
    > + { .addr = i2c->addr, .len = 1, .buf = &cmd_byte };
    > + uint8_t b[6];
    > + struct i2c_msg data_msg =
    > + { .addr = i2c->addr, .flags = I2C_M_RD, .len = 6, .buf = b };


    Do you need these buffers to be capable of DMA?

    Regards
    Oliver


    \
     
     \ /
      Last update: 2011-05-14 21:19    [W:0.026 / U:32.052 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site