From nobody Wed Nov 27 16:41:24 2024 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 48DD318CC15 for ; Tue, 8 Oct 2024 16:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728403792; cv=none; b=ZMLv1LBhQc4qAdbq3Pc9qWYNdsb+LUbb533j369Tbe59dCqdojF0xgVyRJ9bV7i7ETJb8rLqCueobhTYWQSS+5baA6bLGlaMdSzHBHvPSk6YmsbE+8/70ucWmk2JAdyPFCLjN6GscWisyYNsNsZWATXwRi8+RtRlMMDC47nVOKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728403792; c=relaxed/simple; bh=TK//XYpVf4aHBYJhi8srw4wCnQ1U2KT15FO+6llEzHY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ODrQiRZmxNav7ebh/C62X9yL7xxxl5qYD/741qkILLsZdDIVtfUc6l6VJOlwJ7zJlxrr3g1NfaP4jSZrHoS/rqU+h7IgDnytyL6t13Y4CQUoWYQrNNJHS1DUfdVbe2eS4fUcz8BeTxeuUzf3+WXkc12s1j+Iebyje5+oo2pT//s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=bk0ohTTh; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="bk0ohTTh" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-42cb0f28bfbso54633175e9.1 for ; Tue, 08 Oct 2024 09:09:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1728403789; x=1729008589; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=1bTm93KFNh2pnhwbgvS+SzjASmC55+EgB0HziHFw8q0=; b=bk0ohTThH8memyhn11fu0jRarhiQ2na3zWm2ns9yQybhR70/HbhjBJxNBJLSbKeDLI SoOa5zWmO6VaAkqLGzx3awGeDwASwWfuQHqFB8uCXyEgCKg0eeA3O+Alh/6VY1kfh+VZ Xm90FCARgeATxVD0OO6E/hZfynsYxZefV0WPw7bhSkpGkbMtp7XUkPZ1DCBDEv0plMr7 /Hb9KoOB6w9V+NRnOUKat9/TmMK8pbGvHr2rS/jaZL02Unv/h9vZ4eMQ9R40yGhM+VCt lx1QzrSzlb0MuIdY4lfmIJSTYIHrVcMVWCZGFiep2qHP8yZbspoyxyOGA3FTe4CajScd hZEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728403789; x=1729008589; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=1bTm93KFNh2pnhwbgvS+SzjASmC55+EgB0HziHFw8q0=; b=HxSmUSdfLJUvJ2My0fPFZleNQ0gnRm26uU4GiliLnHpWXMaC6fQ35hF8a1bSisGsc+ yKkaVXUifcuclR8w1gxsgmRSon0xG8tcQrrJSHR7VveodZKcyOM4LPSJZ4jOk54jtbXU X/xBnXiEL4Kd4Z3p5KMJtDJX2qJmJqXO82S9Sj59E2S0/ImFRkjiEZRTq5W1fhW5r7JP nk0hSP5OuPtu67e2H1tnYTDjHBG9KCRz2SGic23N3FvBc8Rcm1gZjbXO2JcqFMMXBp+L h3hdeiSPnbaSnH/VNWp7OgjB4LEMU8jyZlpehogKVAbPUbj/At6EOXDcxm6HLQMbYSoX tV7w== X-Forwarded-Encrypted: i=1; AJvYcCUcN4u/veNAXWr1XUySpz5otrd2JYTvMASiWBu2obZP4+eF7wiDWzZ/VocdaCQSY7LxWEJFPqoJKw1obtU=@vger.kernel.org X-Gm-Message-State: AOJu0YxYuJmZtM4dH0ryY1NBslbpe4p5ZM7GbmYJ0XIbHJVmI30Wk52w rvGGeGwRZgoUQrxpRK01dnSoLnUOW26uAqEKA2s5ZduqnQVakNkeV6rg7vF4Yfv6V5dCTCN4FE3 9 X-Google-Smtp-Source: AGHT+IF4fxR+f/UwJBzpPlCe806BLXeK738PkB/aM2J6XLzTkpowUzOIEcK5QyCo7INk/bfz1SSpvQ== X-Received: by 2002:a05:600c:3c92:b0:42c:bf0b:c489 with SMTP id 5b1f17b1804b1-42f85ac2629mr122136005e9.18.1728403789546; Tue, 08 Oct 2024 09:09:49 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:738a:20da:f541:94ff]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42f89ec63c3sm113593405e9.38.2024.10.08.09.09.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 09:09:49 -0700 (PDT) From: Bartosz Golaszewski To: Andi Shyti Cc: linux-arm-msm@vger.kernel.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH] i2c: qup: use generic device property accessors Date: Tue, 8 Oct 2024 18:09:47 +0200 Message-ID: <20241008160947.81045-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Bartosz Golaszewski There's no reason for this driver to use OF-specific property helpers. Drop the last one in favor of the generic variant and no longer include of.h. Signed-off-by: Bartosz Golaszewski Reviewed-by: Neil Armstrong --- drivers/i2c/busses/i2c-qup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index 86ec391616b0..da20b4487c9a 100644 --- a/drivers/i2c/busses/i2c-qup.c +++ b/drivers/i2c/busses/i2c-qup.c @@ -17,9 +17,9 @@ #include #include #include -#include #include #include +#include #include =20 /* QUP Registers */ @@ -1683,7 +1683,7 @@ static int qup_i2c_probe(struct platform_device *pdev) } } =20 - if (of_device_is_compatible(pdev->dev.of_node, "qcom,i2c-qup-v1.1.1")) { + if (device_is_compatible(&pdev->dev, "qcom,i2c-qup-v1.1.1")) { qup->adap.algo =3D &qup_i2c_algo; qup->adap.quirks =3D &qup_i2c_quirks; is_qup_v1 =3D true; --=20 2.43.0