From patchwork Wed Feb 13 22:24:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Menefy X-Patchwork-Id: 10810981 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8923B746 for ; Wed, 13 Feb 2019 22:24:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F6F52B690 for ; Wed, 13 Feb 2019 22:24:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 634662D169; Wed, 13 Feb 2019 22:24:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B77B22B690 for ; Wed, 13 Feb 2019 22:24:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729530AbfBMWYi (ORCPT ); Wed, 13 Feb 2019 17:24:38 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:55526 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388196AbfBMWYi (ORCPT ); Wed, 13 Feb 2019 17:24:38 -0500 Received: by mail-wm1-f68.google.com with SMTP id r17so4255088wmh.5 for ; Wed, 13 Feb 2019 14:24:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mathembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=m+vCklTWoSobytp7Gc3dHDsQcFaMYAikQDXSI8DPoMk=; b=lfw58aOCKT6bJXatKmsWUo/L6nFMoh4ku0BsWsvhKY0Lz4tRqw1BOk7y8/bT8ejH4j u/+vXeR3EbiPnZi2x3s31TVrY5wymOYvl2qGFQDUpBoigrduNcFuvyJ7rPNBy5dQLhya /2KH2Xq+RS/14gTeQGNoLRE2CYMGXI3LYzl2fr1BhfRsjjwI2r7Co2mmsW8MvNErAIxq m8pK+979sbGolm0M4fHyikK2T89bWXsqsAfqL2P5h+2ck/9iwh1CJ82nHWGEJ3aHMFoa sE/Y2ImCBHutOJYSyGO4NZSXEFhSKl7PtOqiA24v3ETwzc3Urqq6RdVvhHpUn1lehj3p Ng6w== 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; bh=m+vCklTWoSobytp7Gc3dHDsQcFaMYAikQDXSI8DPoMk=; b=emR2+0RlkhywM/mZl2x7QekAXt1zVs7Av+eTZ1VBzIAEWN4hxTK12RbnGgZCoYn5fs ZokRithMuijsI9AH6gY1qNB0319VnmAzJB9lJS/WI3APbNlE4UNJMiqIerPNCTygHL9Y +Z/uUhfxEGyHLBJd2JD6HoNpWDy6hokNP9jiyRWszE5fVbzaQaVHWwGWp6zjj2rbTgKJ +Ak4H4odQRNP+D4dvOXdHx3dFfsaf3SZHaIk++fPHQhv8UAPESVvrbJA/pVnfOcsDeL+ HAdIt6TrqaOW6B/IOpgEWrogCysLq7l02QX/kJfX+RmYSBTOCqPACbY73f390n4t1FQC ch/g== X-Gm-Message-State: AHQUAuZUSkm6hNjLtv9jiQWT7xLPVbPcwC1AapjwefW+TEjhBJLG6lsL YdDT7woRnHZq2k3tjoAdsBQGLg== X-Google-Smtp-Source: AHgI3IaOpfGHUjxvmhDCxkXzLXzIfQ1TB3hqopYyP8jKoRacfL0nP3yvHKl20OaO0HeNLB0nVWDVYQ== X-Received: by 2002:a7b:c8d0:: with SMTP id f16mr265981wml.134.1550096676753; Wed, 13 Feb 2019 14:24:36 -0800 (PST) Received: from diamond.mathembedded.com (host86-176-243-198.range86-176.btcentralplus.com. [86.176.243.198]) by smtp.gmail.com with ESMTPSA id h71sm788330wme.20.2019.02.13.14.24.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Feb 2019 14:24:35 -0800 (PST) From: Stuart Menefy To: Sangbeom Kim , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Lee Jones , linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: Stuart Menefy Subject: [PATCH v3 0/2] mfd: sec: Add support for the RTC on S2MPA01 Date: Wed, 13 Feb 2019 22:24:00 +0000 Message-Id: <20190213222402.20541-1-stuart.menefy@mathembedded.com> X-Mailer: git-send-email 2.13.6 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the RTC on the S2MPA01. As this is appears to be identical to the RTC on the S2MPS14 we can use the existing code. Before we can do that however tidy up the existing code as requested by Lee: https://lore.kernel.org/lkml/20190213072458.GB1863@dell/ Changes since v2: - Add patch tidying up existing one element structure initialisation - Rebase patch 2/2 Changes since v1: - Remove the duplicated code and simply declare the RTC to be the same as that on the S2MPS14. Stuart Menefy (2): mfd: sec: Put one element structure initialisation on one line mfd: sec: Add support for the RTC on S2MPA01 drivers/mfd/sec-core.c | 59 +++++++++++++++++--------------------------------- drivers/mfd/sec-irq.c | 3 +++ 2 files changed, 23 insertions(+), 39 deletions(-)