Message ID | 001b01d0f0e7$77be3490$673a9db0$@emc.com.tw (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Hi,
On Wed, Sep 16, 2015 at 7:23 PM, DusonLin <dusonlin@emc.com.tw> wrote:
> [Duson] I think it's better to change here " dev_err(dev,"
What do you prefer? dev_warn?
Thanks
Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Daniel, It is better to change form "dev_err(&data->client->dev," to " dev_err(dev," Thanks duson -----Original Message----- From: Daniel Drake [mailto:drake@endlessm.com] Sent: Thursday, September 17, 2015 9:18 PM To: DusonLin Cc: Dmitry Torokhov; João Paulo Rechi Vita; linux-input@vger.kernel.org Subject: Re: [PATCH] elan_i2c - Don't require known iap version Hi, On Wed, Sep 16, 2015 at 7:23 PM, DusonLin <dusonlin@emc.com.tw> wrote: > [Duson] I think it's better to change here " dev_err(dev," What do you prefer? dev_warn? Thanks Daniel -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c index fa94530..aaa9e94 100644 --- a/drivers/input/mouse/elan_i2c_core.c +++ b/drivers/input/mouse/elan_i2c_core.c @@ -84,8 +84,6 @@ struct elan_tp_data { int pressure_adjustment; u8 mode; u8 ic_type; - u16 fw_validpage_count; - u16 fw_signature_address; bool irq_wake; @@ -264,14 +262,6 @@ static int elan_query_device_info(struct elan_tp_data *data) if (error) return error; - error = elan_get_fwinfo(data->iap_version, &data->fw_validpage_count, - &data->fw_signature_address); - if (error) { - dev_err(&data->client->dev, - "unknown iap version %d\n", data->iap_version); - return error; - } - return 0;