~ubuntu-branches/ubuntu/quantal/linux-linaro-vexpress/quantal

« back to all changes in this revision

Viewing changes to drivers/mfd/ucb1x00-ts.c

  • Committer: Bazaar Package Importer
  • Author(s): John Rigby, John Rigby
  • Date: 2011-03-18 07:36:33 UTC
  • mfrom: (5.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110318073633-tqfe9391ct71zb2p
Tags: 2.6.38-1001.2
[ John Rigby ]

* Rebase to new upstreams:
  Linux v2.6.38-rc6 -- same
  linaro-linux-2.6.38-upstream-1Mar2011 -- new
  Ubuntu-2.6.38-5.32 -- same
  - LP: #724377
* Enable CONFIG_THUMB2_KERNEL for OMAP[34]
* Bump ABI
* Rebase to new upstreams:
  Linux v2.6.38-rc7
  linaro-linux-2.6.38-upstream-4Mar2011
  ubuntu-natty master-next as of 4Mar2011
* Re-enable display on OMAP4
* Disable CONFIG_OMAP2_DSS_SDI
  - LP: #728603
  - LP: #720055
* Rebase to new upstreams:
  Linux v2.6.38-rc8
  linaro-linux-2.6.38-upstream-9Mar2011
    rebased to 2.6.38-rc8
* Remove generated file kernel-versions and sort kernel-versions.in
* Enable CONFIG_TIMER_STATS
  - LP: #718677
* Rebase to new upstreams:
  Linux v2.6.38 final
  linaro-linux-2.6.38-upstream-16Mar2011
  - LP: #708883
  - LP: #723159
  ubuntu-natty Ubuntu-2.6.38-7.35
* Enable CONFIG_IP_PNP and CONFIG_ROOT_NFS for all flavours
  - LP: #736429
* mach-ux500: fix build error
  workaround a problem in linux-linaro-2.6.38
* OMAP4:Fix -EINVAL for vana, vcxio, vdac
  from omap-linux mailing list pending ack
* turn off ROOT_NFS for mx51
  it makes the kernel too large to boot with current hwpack settings

Show diffs side-by-side

added added

removed removed

Lines of Context:
385
385
        idev->close      = ucb1x00_ts_close;
386
386
 
387
387
        __set_bit(EV_ABS, idev->evbit);
388
 
        __set_bit(ABS_X, idev->absbit);
389
 
        __set_bit(ABS_Y, idev->absbit);
390
 
        __set_bit(ABS_PRESSURE, idev->absbit);
391
388
 
392
389
        input_set_drvdata(idev, ts);
393
390
 
 
391
        ucb1x00_adc_enable(ts->ucb);
 
392
        ts->x_res = ucb1x00_ts_read_xres(ts);
 
393
        ts->y_res = ucb1x00_ts_read_yres(ts);
 
394
        ucb1x00_adc_disable(ts->ucb);
 
395
 
 
396
        input_set_abs_params(idev, ABS_X, 0, ts->x_res, 0, 0);
 
397
        input_set_abs_params(idev, ABS_Y, 0, ts->y_res, 0, 0);
 
398
        input_set_abs_params(idev, ABS_PRESSURE, 0, 0, 0, 0);
 
399
 
394
400
        err = input_register_device(idev);
395
401
        if (err)
396
402
                goto fail;