* Check the return codes returned by the command functions
in probe_synaptics(). * Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28442 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -466,10 +466,15 @@ probe_synaptics(ps2_dev *dev)
|
|||||||
{
|
{
|
||||||
uint8 val[3];
|
uint8 val[3];
|
||||||
uint8 deviceId;
|
uint8 deviceId;
|
||||||
|
status_t status;
|
||||||
TRACE("SYNAPTICS: probe\n");
|
TRACE("SYNAPTICS: probe\n");
|
||||||
|
|
||||||
send_touchpad_arg(dev, 0x00);
|
status = send_touchpad_arg(dev, 0x00);
|
||||||
ps2_dev_command(dev, 0xE9, NULL, 0, val, 3);
|
if (status != B_OK)
|
||||||
|
return status;
|
||||||
|
status = ps2_dev_command(dev, 0xE9, NULL, 0, val, 3);
|
||||||
|
if (status != B_OK)
|
||||||
|
return status;
|
||||||
|
|
||||||
gTouchpadInfo.minorVersion = val[0];
|
gTouchpadInfo.minorVersion = val[0];
|
||||||
deviceId = val[1];
|
deviceId = val[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user