From patchwork Thu Feb 7 14:17:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Meerwald-Stadler X-Patchwork-Id: 2111151 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id AF52BDFB7B for ; Thu, 7 Feb 2013 14:18:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758426Ab3BGOSD (ORCPT ); Thu, 7 Feb 2013 09:18:03 -0500 Received: from ns.pmeerw.net ([87.118.82.44]:47052 "EHLO pmeerw.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758236Ab3BGOSB (ORCPT ); Thu, 7 Feb 2013 09:18:01 -0500 Received: from localhost.localdomain (unknown [195.70.114.118]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pmeerw) by pmeerw.net (Postfix) with ESMTPSA id 150FFC50283; Thu, 7 Feb 2013 15:18:00 +0100 (CET) From: Peter Meerwald To: linux-input@vger.kernel.org Cc: dmitry.torokhov@gmail.com, djkurtz@chromium.org, y0922.shim@samsung.com, Peter Meerwald Subject: [PATCH 4/7] input: atmel_mxt_ts: allow writing of SPT_USERDATA_T38 in atmel_mxt_ts driver Date: Thu, 7 Feb 2013 15:17:45 +0100 Message-Id: <1360246668-2291-5-git-send-email-pmeerw@pmeerw.net> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1360246668-2291-1-git-send-email-pmeerw@pmeerw.net> References: <1360246668-2291-1-git-send-email-pmeerw@pmeerw.net> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Peter Meerwald beware: this may break boards using mxt_platform_data.config (which is dangerous by design); boards in the kernel (mach-nuri.c, mach-goni.c) don't use .config Signed-off-by: Peter Meerwald --- drivers/input/touchscreen/atmel_mxt_ts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c index 17cc15a..7fdd439 100644 --- a/drivers/input/touchscreen/atmel_mxt_ts.c +++ b/drivers/input/touchscreen/atmel_mxt_ts.c @@ -309,6 +309,7 @@ static bool mxt_object_writable(unsigned int type) case MXT_SPT_GPIOPWM_T19: case MXT_SPT_SELFTEST_T25: case MXT_SPT_CTECONFIG_T28: + case MXT_SPT_USERDATA_T38: case MXT_SPT_DIGITIZER_T43: case MXT_SPT_CTECONFIG_T46: return true;