From patchwork Thu Dec 12 03:39:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 181393 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp371507ile; Wed, 11 Dec 2019 19:40:22 -0800 (PST) X-Google-Smtp-Source: APXvYqyUT8xW4ga8MwN//khp9Gcb1WWKqenmwr0R/EvssjZYBGEGMSGDmD/eweUCuEnkA4Bgnfjz X-Received: by 2002:a9d:6285:: with SMTP id x5mr5832856otk.144.1576122022129; Wed, 11 Dec 2019 19:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576122022; cv=none; d=google.com; s=arc-20160816; b=Vq0naiouE8Y5iPxQtFCcBa6FaJoeTmK6nBqr45MhF3VINKPx2DDWGzWUKBzUALq8kV XdN4nIKWK/FikW1J7a5eKTuiaE4qvyvnhe9oUwH7w1prjSH95SEee6eZRaayyLzL1S3r BdTHMWcAxcXmIOISATqUORJh3+3fwW8q3TrrwlavIYQoklj6U+2DLkRIjNA+Sjv9J0eJ BrO/L62DSHGYHlK2z3y1UYAfv8ywCGMfyEKm2y7azuj18o5KJWnSYaWWInZYe2rgNzR6 5VdtbCjv7LpJUYfQ7UUCobU1Sk2VdtoTjG7UC8GdLLa7hxRJENcS1dmXqtcQjW8Ycevc VwWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=w3bk21B9ZhHCNWhMsct4Id8M08Tb7Q0xfBdV7VzeShc=; b=rKiW25ziK6YYO5hwSahNV844R22H9mU9V5fQSZfDv/1ITurT2jKGiDLkjnIXxjHaGO H3MO4ruPd4k0xYvmzfbRG0lpcKRuENERc+0OoXMSH8jKg8p6M/BvtUSLDj/6GqGtjLpn sR5fDKckQJuYoLyefjfKBRAMfr7TLdr8U2VYDtqtBPpu+ZWhtlkA9Cov5XoL/rTBo2dh eiBI2YBwN4vX3lHJFTvdICylW7w45pc0oBuEGrPFGS/3Qu0IScnZy4CNL+2D23ZQsXIU 8vzqx599gf/wD0zJWVfexZT83LJso5aK4HsrbrAZjs4yLT1LJtYORQBTuDHT6dCEVECD Qgqg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si2431845otq.157.2019.12.11.19.40.21; Wed, 11 Dec 2019 19:40:22 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727927AbfLLDkU (ORCPT + 27 others); Wed, 11 Dec 2019 22:40:20 -0500 Received: from mx2.suse.de ([195.135.220.15]:59168 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727749AbfLLDkJ (ORCPT ); Wed, 11 Dec 2019 22:40:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CD6E8AF27; Thu, 12 Dec 2019 03:40:07 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-realtek-soc@lists.infradead.org, linux-leds@vger.kernel.org Cc: Jacek Anaszewski , Pavel Machek , Dan Murphy , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , zypeng@titanmec.com Subject: [RFC 23/25] WIP: leds: tm1628: Prepare TM1628 keys Date: Thu, 12 Dec 2019 04:39:50 +0100 Message-Id: <20191212033952.5967-24-afaerber@suse.de> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20191212033952.5967-1-afaerber@suse.de> References: <20191212033952.5967-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Extend TM1628 definition with key input lines. Cc: zypeng@titanmec.com Signed-off-by: Andreas Färber --- drivers/leds/leds-tm1628.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.16.4 diff --git a/drivers/leds/leds-tm1628.c b/drivers/leds/leds-tm1628.c index 0c0d099de8b0..410f34234811 100644 --- a/drivers/leds/leds-tm1628.c +++ b/drivers/leds/leds-tm1628.c @@ -43,6 +43,8 @@ struct tm1628_info { u16 seg_mask; const struct tm1628_mode *modes; int default_mode; + u8 k_mask; + u16 ks_mask; const struct pwm_capture *pwm_map; int default_pwm; }; @@ -656,6 +658,8 @@ static const struct tm1628_info tm1628_info = { .seg_mask = GENMASK(14, 12) | GENMASK(10, 1), .modes = tm1628_modes, .default_mode = 3, + .k_mask = GENMASK(2, 1), + .ks_mask = GENMASK(10, 1), .pwm_map = tm1628_pwm_map, .default_pwm = 0, };