mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-04-02 18:25:40 +02:00
input: don't configure unprobed devices
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@936 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
@@ -541,7 +541,10 @@ int in_set_config(int dev_id, int what, const void *val, int size)
|
||||
return 0;
|
||||
}
|
||||
|
||||
return DRV(dev->drv_id).set_config(dev->drv_data, what, *ival);
|
||||
if (dev->probed)
|
||||
return DRV(dev->drv_id).set_config(dev->drv_data, what, *ival);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
const char *in_get_dev_name(int dev_id, int must_be_active, int skip_pfix)
|
||||
|
||||
Reference in New Issue
Block a user