Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3110400pxb; Tue, 19 Jan 2021 14:11:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkDOY222XuDWmwJsIyFYlXwLgm85oOfsap7qE4LjPcB2J1eLcS/kOK+9B6c4uYY/NFUjMC X-Received: by 2002:a17:906:9616:: with SMTP id s22mr4327701ejx.270.1611094294808; Tue, 19 Jan 2021 14:11:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611094294; cv=none; d=google.com; s=arc-20160816; b=g1FTLtJqsGLYsOCYUEy0Yhicy4nWQUNfdBasb/HXScMIhe/xEjpww6myXo67asv+f7 ENFSbAvtRbrTE3YiS45rX5yhUPlD0yKb95AJkyc3rU9oCxM3EyqJDOZORylVgf6jc8Wa YhsCV/GzkR0QQG9ehxT7W9Zl5OSower9at0nib4kzFgrMFgG7f7IuYftqt8D+dGX77gn gD0QFqejf3+gOo4NJlxPvXYMF13DPoE5qDKREEx5z+6M9hM007+4P4m83iBRXwG88h4d DTWglJA1nhdcFElLrnmTM5bSDSY7ztMPYTqcWU4eOmJR5WMHQUunai/BFKD/kcKUANr1 hxrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=CRsk+/OCekY7HgnYUTNb7l2xy6ew4L2KZPtsOFmdDFg=; b=07y19/9iDtTGSQ07O4CPvFlLRXBtN+SpDyi+54ukB3py1keeacPet1UHVFku014f3G gfuBKzLSOJwpuzjXtd/jUZ2LtVt5Cv1u5ZO2Yzr2p0qz+P7b+sY0Qe9utQ1vccfVnVDo EHfUHBjO3MiTxbW2UpocYPA2RioIyHX9StRY7HjMoYW+rBB3HyrfKVsjfHIoj+s4iJFF EXdOr8LpP9t1dBzFRu/BmSy6fM2wn+XaqHfENJivc6yV5TB5bNbhvno5VKqC2Es70x1r umkri02ZrFWpFd+dukd4HVL71WW68BiF3cMGk0SfX0FWvN7P7P+VBtrjzF48oh/c3elY VYfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si34645ejr.370.2021.01.19.14.11.06; Tue, 19 Jan 2021 14:11:34 -0800 (PST) Received-SPF: pass (google.com: 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; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730167AbhASWJ0 (ORCPT + 99 others); Tue, 19 Jan 2021 17:09:26 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:59329 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729246AbhASWIH (ORCPT ); Tue, 19 Jan 2021 17:08:07 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 585C320004; Tue, 19 Jan 2021 22:06:56 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/14] rtc: ac100: use rtc_lock/rtc_unlock Date: Tue, 19 Jan 2021 23:06:39 +0100 Message-Id: <20210119220653.677750-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Avoid accessing directly rtc->ops_lock and use the RTC core helpers. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-ac100.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-ac100.c b/drivers/rtc/rtc-ac100.c index 1ddbef99e38f..92f690542ad2 100644 --- a/drivers/rtc/rtc-ac100.c +++ b/drivers/rtc/rtc-ac100.c @@ -528,7 +528,7 @@ static irqreturn_t ac100_rtc_irq(int irq, void *data) unsigned int val = 0; int ret; - mutex_lock(&chip->rtc->ops_lock); + rtc_lock(&chip->rtc); /* read status */ ret = regmap_read(regmap, AC100_ALM_INT_STA, &val); @@ -551,7 +551,7 @@ static irqreturn_t ac100_rtc_irq(int irq, void *data) } out: - mutex_unlock(&chip->rtc->ops_lock); + rtc_unlock(&chip->rtc); return IRQ_HANDLED; } -- 2.29.2