OSDN Git Service

staging: olpc_dcon: ->read_status() API change
authorXi Wang <xi.wang@gmail.com>
Fri, 2 Dec 2011 21:28:43 +0000 (16:28 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 8 Dec 2011 23:00:43 +0000 (15:00 -0800)
commit91762057f439bb0adb33ca857b6022fda4b1fd69
treef6f3d6db213eac30f3dc6c990812bf6e7365ccee
parentfb927284e4d3a0c50a47063ff9be1fe3f5511f61
staging: olpc_dcon: ->read_status() API change

Change ->read_status() by separating the error handling and the
status bits.  This also fixes a signedness bug in dcon_interrupt()
that would break the error handling.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Acked-by: Andres Salomon <dilinger@queued.net>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/olpc_dcon/olpc_dcon.c
drivers/staging/olpc_dcon/olpc_dcon.h
drivers/staging/olpc_dcon/olpc_dcon_xo_1.c
drivers/staging/olpc_dcon/olpc_dcon_xo_1_5.c