Fix IPTS error on device release
This commit is contained in:
parent
c4e3986dce
commit
dc062fd717
|
@ -286,8 +286,9 @@ err_dev:
|
||||||
|
|
||||||
void ipts_hid_release(ipts_info_t *ipts)
|
void ipts_hid_release(ipts_info_t *ipts)
|
||||||
{
|
{
|
||||||
struct hid_device *hid = ipts->hid;
|
if (!ipts->hid)
|
||||||
hid_destroy_device(hid);
|
return;
|
||||||
|
hid_destroy_device(ipts->hid);
|
||||||
}
|
}
|
||||||
|
|
||||||
int ipts_handle_hid_data(ipts_info_t *ipts,
|
int ipts_handle_hid_data(ipts_info_t *ipts,
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include "ipts-state.h"
|
#include "ipts-state.h"
|
||||||
#include "ipts-binary-spec.h"
|
#include "ipts-binary-spec.h"
|
||||||
|
|
||||||
//#define ENABLE_IPTS_DEBUG /* enable IPTS debug */
|
#define ENABLE_IPTS_DEBUG /* enable IPTS debug */
|
||||||
|
|
||||||
#ifdef ENABLE_IPTS_DEBUG
|
#ifdef ENABLE_IPTS_DEBUG
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue