Received: by 10.213.65.68 with SMTP id h4csp785694imn; Tue, 20 Mar 2018 15:33:58 -0700 (PDT) X-Google-Smtp-Source: AG47ELvprbf4cVrWFfBysQznjxuh3f/3Lp7FX5i3QAXZTSNLJ8ZvNaCaMo5kpV4fewAlqvjLD2xq X-Received: by 10.99.121.73 with SMTP id u70mr13575337pgc.232.1521585238326; Tue, 20 Mar 2018 15:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521585238; cv=none; d=google.com; s=arc-20160816; b=dON3XK/E41CPhdTEu4ebuCIzARBRpz2azkK4VA/ezlLWsQoK/LCVa55cLI1ZpZ1KBV Irr3COD1M70PhmECQezSYDHzIHN8yYY2oKY7A5xjt0sVLbXJDFpQn9djPM5pJGv8TA+s yO1Ter9B/xobN8uweRIpiJbzO2QxHewa1zfTIEAIVN7jg2hYGtAbvkiIBv8Dg4Tr/TAJ 3fjKwvtUg+olWer7e6rzRNlVfp/f3Q5YT5Nu3YvuKpCz/CLwJ03vTccTog5szQfBNfQt Xphzcc0sc3v8d9zzc//OYZcMUgpm/xJNO6/HGnQirw74lQU+MWInkjCVHYNrAZRy4WyR pKrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=SEP01/ouSgEMl3NwFProFHEkAKH4zy4S8RSawPzQpuE=; b=XBe+apLWI11bMsis6/TxRTDXWBNI8twojStTbviRlcfx7rlWUnxneWUlfZFtGxqZnm wIGWygPezYhJEhen2l2KiLtEnstJ83Psc8o0loCcaXSDSBEMzLlnGDnKLf3pFYgVr9ks +RiSMza215PW3tucHzsNNvmVzAd5ImMwJqCEuRnI+rqtyEE6jk23cMRzhU4nug9paYzC ZJSawm8o+zpUsOkHn9QeAkeaHBHrCzp15UOw5SLDkzWQiUNbKW9Ukv4LbGv9gopjkDT2 8MfxByly5hApnOStFyt6AFC6aoU1LHtxMhLBGVBoWZkXAc8NX3fzF2JjPd4H4GJR3CGr R/fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HWISxdS1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y62si2034766pfd.52.2018.03.20.15.33.44; Tue, 20 Mar 2018 15:33:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HWISxdS1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752009AbeCTWcW (ORCPT + 99 others); Tue, 20 Mar 2018 18:32:22 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:40897 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751776AbeCTWb7 (ORCPT ); Tue, 20 Mar 2018 18:31:59 -0400 Received: by mail-pg0-f67.google.com with SMTP id g8so1211710pgv.7; Tue, 20 Mar 2018 15:31:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SEP01/ouSgEMl3NwFProFHEkAKH4zy4S8RSawPzQpuE=; b=HWISxdS1Y7z53Ce9fxp+LMQ7pKU1PGGJMoyv62mN4m7bIOcOOIf9UFgbQlX0CgwXTF Y4ut2IclkOJWaYBHqeZGu9MMavOJWrm6M/hhXIcVmGFAa8wMuWl4Gv9y03ehC8s8ffss ZvF/Gp7eJ6/ysWrPhbjO5NI/HxxGCTRhE5nso5kOuf7gIKmmfwOi2F9CIBxremi0oOc7 rqGBWp0Q15KC3XseAhmJ5UeEmUwy3erFBSUZnec6Ica5YU1k44gPqEuleaD3/YqAZJ0o fCpG62yicgnzOlued61FT1gjYGgC2L7/bHojYKYptaTm3qL5MDPE0d5APkPBDWGDysko 5Q2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=SEP01/ouSgEMl3NwFProFHEkAKH4zy4S8RSawPzQpuE=; b=efp44E3qDcetND4vcVuzDMf2Tpj34ZC/fqfNpKtlaGhFE4n7sO2TLvA1QSiNut3sWQ K0yEVtcLjBy4xubvx2YpBHnkJsH3wXZLoXt0NTMjGKQQ2LOb0WiM7ktEpVmkkbPRBr2T 7X9qIGgxqh6JyEDg/sirgssYc7wnpgNvya2BX3WwG+Fo/lPyGvyxhkkQkbHti/R8r/VE yKpUtcbjIWdqsE3Rp4djBDEMxeo7dqup9pDgh49deaF6KKVSeu3s6a+rbZ+9fkeo7kJh R7xleGurmsdnfR0YwpeTTsJp8d76kDrmTVY+90gzfKlOcXb0aswaV1aieQmtyQRkiLGq /Eeg== X-Gm-Message-State: AElRT7Gr9OtPNC+JT8yFi756dWuhSDPK0J2cq6NZaAN7fiiGUg+zCn5D AlyCgln6dJkDpbvxK5ywCdbRvCoC X-Received: by 10.98.217.85 with SMTP id s82mr8996649pfg.208.1521585118339; Tue, 20 Mar 2018 15:31:58 -0700 (PDT) Received: from dtor-ws.mtv.corp.google.com ([2620:0:1000:1511:8de6:27a8:ed13:2ef5]) by smtp.gmail.com with ESMTPSA id r20sm6108360pff.165.2018.03.20.15.31.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Mar 2018 15:31:57 -0700 (PDT) From: Dmitry Torokhov To: linux-input@vger.kernel.org, Benson Leung Cc: Nick Dyer , Olof Johansson , linux-kernel@vger.kernel.org Subject: [PATCH v2 12/14] platform/chrome: chromeos_laptop - use device properties for Pixel Date: Tue, 20 Mar 2018 15:31:36 -0700 Message-Id: <20180320223138.234724-13-dmitry.torokhov@gmail.com> X-Mailer: git-send-email 2.16.2.804.g6dcf76e118-goog In-Reply-To: <20180320223138.234724-1-dmitry.torokhov@gmail.com> References: <20180320223138.234724-1-dmitry.torokhov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that Atmel driver uses generic device properties we can use them instead of platform data when setting up touchpad on the original Google Pixel. Signed-off-by: Dmitry Torokhov --- drivers/platform/chrome/chromeos_laptop.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c index 1191c1a3a0cd1..fe83a2a4900e4 100644 --- a/drivers/platform/chrome/chromeos_laptop.c +++ b/drivers/platform/chrome/chromeos_laptop.c @@ -8,13 +8,13 @@ #include #include -#include #include #include #include #include #include #include +#include #define ATMEL_TP_I2C_ADDR 0x4b #define ATMEL_TP_I2C_BL_ADDR 0x25 @@ -229,9 +229,9 @@ static int chromebook_pixel_tp_keys[] = { BTN_LEFT }; -static struct mxt_platform_data chromebook_pixel_tp_platform_data = { - .t19_num_keys = ARRAY_SIZE(chromebook_pixel_tp_keys), - .t19_keymap = chromebook_pixel_tp_keys, +static const struct property_entry chromebook_pixel_trackpad_props[] = { + PROPERTY_ENTRY_U32_ARRAY("linux,gpio-keymap", chromebook_pixel_tp_keys), + { } }; static struct chromeos_laptop chromebook_pixel = { @@ -253,8 +253,8 @@ static struct chromeos_laptop chromebook_pixel = { .board_info = { I2C_BOARD_INFO("atmel_mxt_tp", ATMEL_TP_I2C_ADDR), - .platform_data = - &chromebook_pixel_tp_platform_data, + .properties = + chromebook_pixel_trackpad_props, .flags = I2C_CLIENT_WAKE, }, .dmi_name = "trackpad", -- 2.16.2.804.g6dcf76e118-goog