[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080911085753.ZZRA012@mailhub.coreip.homeip.net>
Date: Thu, 11 Sep 2008 08:59:57 -0400
From: Dmitry Torokhov <dmitry.torokhov@...il.com>
To: Andres Salomon <dilinger@...ued.net>
Cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/3] OLPC: touchpad driver (take 2)
Hi Andres,
On Thu, Sep 11, 2008 at 01:01:24AM -0400, Andres Salomon wrote:
> @@ -114,7 +115,7 @@ ssize_t psmouse_attr_show_helper(struct device *dev, struct device_attribute *at
> ssize_t psmouse_attr_set_helper(struct device *dev, struct device_attribute *attr,
> const char *buf, size_t count);
>
> -#define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _show, _set) \
> +#define PSMOUSE_DEFINE_ATTR(_name, _mode, _data, _protected_set, _show, _set) \
> static ssize_t _show(struct psmouse *, void *data, char *); \
> static ssize_t _set(struct psmouse *, void *data, const char *, size_t); \
> static struct psmouse_attribute psmouse_attr_##_name = { \
> @@ -129,6 +130,7 @@ static struct psmouse_attribute psmouse_attr_##_name = { \
> .data = _data, \
> .show = _show, \
> .set = _set, \
> + .protected_set = _protected_set, \
> }
>
I would rather you defined __PSMOUSE_DEFINE_ATTR() with 'protected'
argument and then defined PSMOUSE_DEFINE_ATTR() through underscored
version so that nothing else need to be changed.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists