From patchwork Mon Dec 20 13:39:22 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Rydberg X-Patchwork-Id: 420751 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oBKDeGuX031192 for ; Mon, 20 Dec 2010 13:40:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754970Ab0LTNkI (ORCPT ); Mon, 20 Dec 2010 08:40:08 -0500 Received: from ch-smtp03.sth.basefarm.net ([80.76.149.214]:38258 "EHLO ch-smtp03.sth.basefarm.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753137Ab0LTNkG (ORCPT ); Mon, 20 Dec 2010 08:40:06 -0500 Received: from c83-248-200-95.bredband.comhem.se ([83.248.200.95]:60386 helo=polaris) by ch-smtp03.sth.basefarm.net with smtp (Exim 4.72) (envelope-from ) id 1PUfy4-00032l-Cb; Mon, 20 Dec 2010 14:40:04 +0100 Received: by polaris (sSMTP sendmail emulation); Mon, 20 Dec 2010 14:39:55 +0100 From: "Henrik Rydberg" To: Dmitry Torokhov Cc: Jiri Kosina , Takashi Iwai , Chase Douglas , Chris Bagwell , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Henrik Rydberg Subject: [PATCH 1/3] Input: synaptics - report clickpad property Date: Mon, 20 Dec 2010 14:39:22 +0100 Message-Id: <1292852364-19127-2-git-send-email-rydberg@euromail.se> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1292852364-19127-1-git-send-email-rydberg@euromail.se> References: <1292852364-19127-1-git-send-email-rydberg@euromail.se> X-Originating-IP: 83.248.200.95 X-Scan-Result: No virus found in message 1PUfy4-00032l-Cb. X-Scan-Signature: ch-smtp03.sth.basefarm.net 1PUfy4-00032l-Cb cf99e5ec4fcdc45fc01d36c825420ea6 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 20 Dec 2010 13:40:16 +0000 (UTC) diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c index 2e300a4..8997cbc 100644 --- a/drivers/input/mouse/synaptics.c +++ b/drivers/input/mouse/synaptics.c @@ -622,6 +622,8 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv) { int i; + __set_bit(INPUT_PROP_POINTER, dev->propbit); + __set_bit(EV_ABS, dev->evbit); input_set_abs_params(dev, ABS_X, XMIN_NOMINAL, priv->x_max ?: XMAX_NOMINAL, 0, 0); @@ -663,6 +665,7 @@ static void set_input_params(struct input_dev *dev, struct synaptics_data *priv) input_abs_set_res(dev, ABS_Y, priv->y_res); if (SYN_CAP_CLICKPAD(priv->ext_cap_0c)) { + __set_bit(INPUT_PROP_BUTTONPAD, dev->propbit); /* Clickpads report only left button */ __clear_bit(BTN_RIGHT, dev->keybit); __clear_bit(BTN_MIDDLE, dev->keybit);