Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3369557pxb; Mon, 25 Jan 2021 14:17:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyQ7feUSJvD3d/bN8H+0i9kumLJzZNAeoUhYA51h9gLkShv8WLOMpNgV4EmHGZfILVRkq5p X-Received: by 2002:a17:907:961d:: with SMTP id gb29mr1671267ejc.460.1611613027724; Mon, 25 Jan 2021 14:17:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611613027; cv=none; d=google.com; s=arc-20160816; b=p7oRiD9sPp0E2D/Y1eXw545A5WsXBSZdw/bEiRACwVzLWOBtFiebwYej/hAYDQkJbz qkqPo2gnCsmNlbUmksoejmMiVNaozmvgeLWyrhH4cibcgnERiC7tbGFVvvG/4e0iCx4+ h/B2QQE4NdAnZJ4oxzNx9BXwfuwZMNjre5CbHmFxXalgH1SrQZfvc17zEiacDQ5Il82n vUmGxojFPrkj4zivPLx6r/+xe6V5sViQC2+q9eivXh45Llt98PzVxPZVlfiSyuRJuL6s kyFnZpwleFh4cLQ0fGtSwqwfBzFjoc9BpCcATIvBfJMxgk6gUdPe+A0dtzhq5Q56+Hkp 8rcA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8Lfj8/oxo2W5Zwegtef4d/c1i34EFTe7bhLiOdSd5xE=; b=DyJlOoIpr1eNFa3R+b97wcMHBep/L+HFFgUJRj0i/iWBCxWpXWUk3Hgjbm1lxSKnk7 7MA6rWcFVjYo5rUrZu+QTQqsAAqWLX8Y/6kegwsHZUERH1+oumBkgn+teTYIfTY1uL9/ 2eis3osx8KK4PQ8vVPBNoPoKkDR1vYab1g/nXf+ntVzjVXvvvdUk+M9dQV1+cjNQdsjL P9arVlqOHe9xbpScMLhZy+GHxfSBqbubpkB5KyrsoCYdKjeiZaUOqwshfvPb4ZG1MAlN ibUWTxQiK0wS/c/BogtDF/B9MMef1wSnFG5jukThEdRtgt7bjpi4x66HPC+EHPK/YYIF 1mhQ== 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 by2si7364690edb.143.2021.01.25.14.16.44; Mon, 25 Jan 2021 14:17:07 -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 S1732118AbhAYWPA (ORCPT + 99 others); Mon, 25 Jan 2021 17:15:00 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38517 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732125AbhAYWO4 (ORCPT ); Mon, 25 Jan 2021 17:14:56 -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 relay4-d.mail.gandi.net (Postfix) with ESMTPSA id A10D0E0002; Mon, 25 Jan 2021 22:14:08 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] rtc: ac100: use rtc_lock/rtc_unlock Date: Mon, 25 Jan 2021 23:14:02 +0100 Message-Id: <20210125221402.1958484-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210119220653.677750-1-alexandre.belloni@bootlin.com> References: <20210119220653.677750-1-alexandre.belloni@bootlin.com> 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..66783cb5e711 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