Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4569773ybb; Tue, 14 Apr 2020 09:49:05 -0700 (PDT) X-Google-Smtp-Source: APiQypIiNK2jVHY9H7PLYDzYdVm/cvoGKA272TSVVkNd1xoKKOWbSU/1c04xSnBooszgs2yg29d8 X-Received: by 2002:a05:6402:1c07:: with SMTP id ck7mr371394edb.202.1586882945511; Tue, 14 Apr 2020 09:49:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586882945; cv=none; d=google.com; s=arc-20160816; b=hxm9zrAChX/CBC5sz6M9Oi/ARlP4YHL2JyPKftABLpnucG3i3eVN/lpqp7o/VT/9fX dP5Kidx4JxPNpG60dVrF3nng8csQ1o4RrRSTGYFaJCcU88yt3ITrj3d2c/tSdgWVrEZj RrGNzFn3ColLdyXc/1SkYHkv80wDw99j2FuEcfmeAj40dLm8oFApj1ePqrvYk/GRlpfr g12EmlhXydS09PmEvEhm5qbuf/Zs681K3CfMKX+9D1eEAo2ZLJVhdnb7L0ws6goKnsXg 1xqZ1UYx1Yh65bxI63dUt7Y5HA8zji8GiFLxoCvN7+josz0crKZKqKxHwdmCHWR1JkU7 mcZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=cwHJtLICodVUSXEWUFWl7YPa/4ZcGJOdWOShDK6RdSo=; b=yevnI9AxffI1GYU3+o4w2+DoBcevVM3B3YGIcPXTaZLxZO4hcpx2Ce1X0VHCpKpAdo U8/kUckISZ6MHhTr3a5HUtzGkpOKNANghha6HIcEJ8b1qkuYSWno6pMHr3HskE85ctkr AaCmVA/L+AdG0JA1gwX7p9kk24AzDe0dF+YXRZ6RgXVBqEntfrrx4FahuAJeXKFb5LqR lnepoJyp/k6UwlcjN5fFHjDiUpLGf0mCavm9Gzmkx/UHbfhmu2Bp7v80vlqHHUKlwsaQ fsH86Nyxwfh6h46VbJjgs4e3EUOPozWY6YJUo1LEraq7kqaZt2eDNtA76mGk1WHiSf7x BtOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J82j8tq+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w29si1224085edi.197.2020.04.14.09.48.42; Tue, 14 Apr 2020 09:49:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=J82j8tq+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440526AbgDNPh6 (ORCPT + 99 others); Tue, 14 Apr 2020 11:37:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:58044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440524AbgDNPhq (ORCPT ); Tue, 14 Apr 2020 11:37:46 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 75806206D5; Tue, 14 Apr 2020 15:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586878666; bh=3DcWBMkHYt7UCLuJw2C+rh7kKvm6dei6Pct6rgtk3RM=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=J82j8tq+ov9dP3vL5aafeuxG4z7zN4VfHB4CwPjALkvYUJzA1ITED1XYqQn+Ky1IM 4McW1PnbfX4fjeCA9v1Nee7LDWATYcmR0nh2fcLrQ/DA40isbw7ZJs2Cg6w2pSo2dE hm8egFNJbIpA8CUhP9sOnf+W+OD8ZjZejMGqfcwE= Date: Tue, 14 Apr 2020 16:37:43 +0100 From: Mark Brown To: Marco Felsch Cc: broonie@kernel.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org, Mark Brown Subject: Applied "regmap: add reg_sequence helpers" to the regmap tree In-Reply-To: <20200402084111.30123-1-m.felsch@pengutronix.de> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regmap: add reg_sequence helpers has been applied to the regmap tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From bd3ddb495762575ab14e7bd2e4017dc1f9a80b2f Mon Sep 17 00:00:00 2001 From: Marco Felsch Date: Thu, 2 Apr 2020 10:41:11 +0200 Subject: [PATCH] regmap: add reg_sequence helpers Add helper to make it easier to define a reg_sequence array. Signed-off-by: Marco Felsch Link: https://lore.kernel.org/r/20200402084111.30123-1-m.felsch@pengutronix.de Signed-off-by: Mark Brown --- include/linux/regmap.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 40b07168fd8e..0b5582a78df8 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -71,6 +71,13 @@ struct reg_sequence { unsigned int delay_us; }; +#define REG_SEQ(_reg, _def, _delay_us) { \ + .reg = _reg, \ + .def = _def, \ + .delay_us = _delay_us, \ + } +#define REG_SEQ0(_reg, _def) REG_SEQ(_reg, _def, 0) + #define regmap_update_bits(map, reg, mask, val) \ regmap_update_bits_base(map, reg, mask, val, NULL, false, false) #define regmap_update_bits_async(map, reg, mask, val)\ -- 2.20.1