From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Christopher Heiny <cheiny@synaptics.com>
Cc: Linux Input <linux-input@vger.kernel.org>,
Andrew Duggan <aduggan@synaptics.com>,
Vincent Huang <vincent.huang@tw.synaptics.com>,
Vivian Ly <vly@synaptics.com>,
Daniel Rosenberg <daniel.rosenberg@synaptics.com>,
Jean Delvare <khali@linux-fr.org>,
Joerie de Gram <j.de.gram@gmail.com>,
Linus Walleij <linus.walleij@stericsson.com>,
Benjamin Tissoires <benjamin.tissoires@redhat.com>
Subject: Re: [PATCH] input synaptics-rmi4: Delete some obsolete code
Date: Fri, 27 Dec 2013 18:24:14 -0800 [thread overview]
Message-ID: <20131228022414.GD14188@core.coreip.homeip.net> (raw)
In-Reply-To: <1388195887-26503-1-git-send-email-cheiny@synaptics.com>
On Fri, Dec 27, 2013 at 05:58:07PM -0800, Christopher Heiny wrote:
> The answer to the question "is this crap needed with F01 always present?" is
> "no, it's not". Also delete obsolete [suspend|resume]_one_device.
>
> Signed-off-by: Christopher Heiny <cheiny@synaptics.com>
> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Applied, thank you.
>
> ---
>
> drivers/input/rmi4/rmi_driver.c | 48 -----------------------------------------
> 1 file changed, 48 deletions(-)
>
> diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
> index 2ae9af9..a4e5236 100644
> --- a/drivers/input/rmi4/rmi_driver.c
> +++ b/drivers/input/rmi4/rmi_driver.c
> @@ -686,39 +686,6 @@ error_exit:
> return retval;
> }
>
> -#if 0
> -// XXX is this crap needed with F01 always present?
> -static int f01_notifier_call(struct notifier_block *nb,
> - unsigned long action, void *data)
> -{
> - struct device *dev = data;
> - struct rmi_function *fn;
> -
> - if (!rmi_is_function_device(dev))
> - return 0;
> -
> - fn = to_rmi_function(dev);
> - if (fn->fd.function_number != 0x01)
> - return 0;
> -
> - switch (action) {
> - case BUS_NOTIFY_BOUND_DRIVER:
> - dev_dbg(dev, "%s: F01 driver bound.\n", __func__);
> - enable_sensor(fn->rmi_dev);
> - break;
> - case BUS_NOTIFY_UNBIND_DRIVER:
> - dev_dbg(dev, "%s: F01 driver going away.\n", __func__);
> - disable_sensor(fn->rmi_dev);
> - break;
> - }
> - return 0;
> -}
> -
> -static struct notifier_block rmi_bus_notifier = {
> - .notifier_call = f01_notifier_call,
> -};
> -#endif
> -
> #ifdef CONFIG_PM_SLEEP
> static int rmi_driver_suspend(struct device *dev)
> {
> @@ -738,13 +705,6 @@ static int rmi_driver_suspend(struct device *dev)
>
> disable_sensor(rmi_dev);
>
> -#if 0
> - /** Do it backwards so F01 comes last. */
> - list_for_each_entry_reverse(entry, &data->function_list, node)
> - if (suspend_one_device(entry) < 0)
> - goto exit;
> -#endif
> -
> if (data->post_suspend)
> retval = data->post_suspend(data->pm_data);
>
> @@ -768,14 +728,6 @@ static int rmi_driver_resume(struct device *dev)
> goto exit;
> }
>
> -#if 0
> - /** Do it forwards, so F01 comes first. */
> - list_for_each_entry(entry, &data->function_list, node) {
> - if (resume_one_device(entry) < 0)
> - goto exit;
> - }
> -#endif
> -
> retval = enable_sensor(rmi_dev);
> if (retval)
> goto exit;
--
Dmitry
prev parent reply other threads:[~2013-12-28 2:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-28 1:58 [PATCH] input synaptics-rmi4: Delete some obsolete code Christopher Heiny
2013-12-28 2:24 ` Dmitry Torokhov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131228022414.GD14188@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=aduggan@synaptics.com \
--cc=benjamin.tissoires@redhat.com \
--cc=cheiny@synaptics.com \
--cc=daniel.rosenberg@synaptics.com \
--cc=j.de.gram@gmail.com \
--cc=khali@linux-fr.org \
--cc=linus.walleij@stericsson.com \
--cc=linux-input@vger.kernel.org \
--cc=vincent.huang@tw.synaptics.com \
--cc=vly@synaptics.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).