Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1976034lqo; Sun, 19 May 2024 07:25:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFnE0diOfytg1ROH11dqG6u22c3nY7DDrbKOqd5qrZZZkX1eV3QSubKB2Aim3SQE1q37h8e4haBLcj8C62D7XLCZX6SeXyIX1tpxjGjQ== X-Google-Smtp-Source: AGHT+IGi/On240JnkvCEcl4JQ+fUA2ZL/1WwgXDaMYb3O2KPVMN258mxjFZ7LW9Y5YZ/4lIqwqR4 X-Received: by 2002:a17:903:2281:b0:1f2:fdf2:b6e5 with SMTP id d9443c01a7336-1f2fdf2bb60mr11401465ad.9.1716128713875; Sun, 19 May 2024 07:25:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716128713; cv=pass; d=google.com; s=arc-20160816; b=Is1B2vuGvknGHuMOYeROs7vgTNd1EK6u/eoAqNHvGmF1rjv82GbeIcxZ+B6/QEmhq4 acUWMtF7GZry5vMYwDpwElE5ohxVgNaZPvyI94FuF6UpVpvhOLrDsny1frB6gT+cUPvn sb2SkggRYGyqGKBM3fSLBF4t3t/z0XwYG62DhS9pRwy6NpZtuRPW8/WTzC7xRHakkGG8 BDGbx4V04NPCnC/3D4XeaDD4kJ7GOTu6qec+YoBbahjotwY0vLMaWiZNjJEiyD8l0jBQ tVpLXjh755mdfqLjOJk9N8/IDbNJUMS1sHjAbbMpjqk9O3y+hx4RlZ+ZuPRDj6ECTauB UZBg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=Z7IY/XCXO+LyM2T2svBJzTI+DaV/MDvO11baXgKz8HM=; fh=5qz+MjtH+DgodhGlQ6KpQbQDfbWjmtLGh9743vD1Hjs=; b=mFvpGoZ6IrtJNDIrJddlVhd0kVHVEg5YmEF6fkqN6bl92sclB+aGraniCUSD6AUWhr 7JqoBHVO9p2XygK6Hqm1M0cYPP5nf8XFwSHHyaO9QX5CLptrgJ6taoLJd5PMMGHd47a6 wqidIbapClIMTbYfIns3LKasRg+c84ZqoK9i/z5mWBUydXcKqyo+o267e4Uom8eVc6o2 4yzzQTBVdCVQXU5dSSg0/O3b2f4yZER5ovIhAuE2nedEAWXVOlA4O6cOJIYqXg0Kq87z C2R8jyVmi1J2GzyYoSQtzo+KGA4RVTGGCEEL9dc11Mlxdd/VPw/4yNZ1m0aSBQQDe7lD iRrQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bBnaWIzv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c039405si20932315ad.427.2024.05.19.07.25.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 May 2024 07:25:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bBnaWIzv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-183127-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183127-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 832782819D2 for ; Sun, 19 May 2024 14:25:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5D884C62B; Sun, 19 May 2024 14:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bBnaWIzv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04D0D4C60B; Sun, 19 May 2024 14:25:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716128707; cv=none; b=HXS8bjjUlfzJWQXIuVjTO5Sy4Ez3OBfTXNMUve+r9FgIZiSbz74lRagESCfCyP8EjjJYEbbbZrAZCDovg5H3/m8vHH3ATvNIHiJmjNAL08qSh2S+fsvk5fPM/2MdplEmBleCPKMfZ7R9OgT9n3wb0iBLYP7U5ClDqgtaOU+XGew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716128707; c=relaxed/simple; bh=pCcNl44FrZEJTOobvt2e7CkCg2Eq+SUXEeb2lVVtgZU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fC5u2mtUn9Vpat87Hinn5TInBM0YapDJba83G1OGOqwYm1r/8X8sLX7J47bxADIK+ZsaUza0A/HEsxa1WUleflxm1IKVJ1Y4sDd0K8vCa6TcD43wpT4xB+UVVfXNjhQnt3A5UHAQwVTjwXtlQt9oiWAUkIwdnuBgIBSz9+CILX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bBnaWIzv; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 275C5C32781; Sun, 19 May 2024 14:25:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716128706; bh=pCcNl44FrZEJTOobvt2e7CkCg2Eq+SUXEeb2lVVtgZU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bBnaWIzvlIM+BbOhX1rbGJUfm+kbQLJ+ndqY+twEgI3lOQtc0J+7uXxSGrtmmDH+f nn4AMlV9jtOdcCL1xeKOjILspygTI/nnjhU+iw9UXYDH+B4QZYkUXHhLWbKSGgeG22 /+sG+SvrTC/viFqTPUzlY4eP0BBktxxlIgULAlpDOOeRjmrS79llT4ozK1mip8yBfX yAOI8kQX1yw0itWaugy+wUuk0AU+vp2472Xt9yd1ENm91jCJXynFE/2BnlLHU5nECf 69Nz0MCZaLaH+kWxMziSqU6zM54wTx2nhhsBhltPeCmMozsdbCdHYlMKbgvVeN7F1P aIt8oJdT9yPfg== Date: Sun, 19 May 2024 15:24:51 +0100 From: Jonathan Cameron To: Vasileios Amoiridis Cc: lars@metafoo.de, andriy.shevchenko@linux.intel.com, ang.iglesiasg@gmail.com, mazziesaccount@gmail.com, ak@it-klinger.de, petre.rodan@subdimension.ro, phil@raspberrypi.com, 579lpy@gmail.com, linus.walleij@linaro.org, semen.protsenko@linaro.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Cameron Subject: Re: [PATCH v7 2/5] iio: pressure: bmp280: Introduce new cleanup routines Message-ID: <20240519152451.4e2782f5@jic23-huawei> In-Reply-To: <20240512230524.53990-3-vassilisamir@gmail.com> References: <20240512230524.53990-1-vassilisamir@gmail.com> <20240512230524.53990-3-vassilisamir@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.42; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 13 May 2024 01:05:21 +0200 Vasileios Amoiridis wrote: > Introduce new linux/cleanup.h with the guard(mutex) functionality. > > Suggested-by: Andy Shevchenko > Suggested-by: Jonathan Cameron > Signed-off-by: Vasileios Amoiridis I put back the line accidentally deleted in this one whilst applying. Jonathan > +static int bmp580_nvmem_write(void *priv, unsigned int offset, void *val, > + size_t bytes) > +{ > + struct bmp280_data *data = priv; > + int ret; > + > + pm_runtime_get_sync(data->dev); > + ret = bmp580_nvmem_write_impl(priv, offset, val, bytes); > pm_runtime_mark_last_busy(data->dev); > pm_runtime_put_autosuspend(data->dev); > + > return ret; > } > - grump. > static int bmp580_preinit(struct bmp280_data *data) > { > struct nvmem_config config = {