From patchwork Tue Oct 8 16:09:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 834079 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 448B484A35 for ; Tue, 8 Oct 2024 16:09:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728403792; cv=none; b=lCVRtYtqNvICwC5cV6Jt90qyZ5CItH5QNbX9MlOnjB68rSt5nyp1alFVtkQwgNKcNCTRzb8hnBOZqsA9Xod8EmKSr/TJyNL9QHhRVYvGcKLY3JuLQ+8rhtUaO6li7xL+pGaZQBcCkgyKmYas36ZOMnh9BOOPxQrP9LEybiRfl+s= 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.41 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-f41.google.com with SMTP id 5b1f17b1804b1-42cb9a0c300so54714965e9.0 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=MrRbx5xtIOHrOvGLNwsIMlG02qvEej/ABPBoSQd2Sx1RiYWnGV2RNaNCGHHGwCBPRs Hb/3aF17+Ro40HrRnFRNB1s6G9+dHoTA5lXQizeZcDdEmqiMerjzrO0ViHnZUz3fp9hs SJS+Eqi0/45DfXtcnY6nOr14zCvuI1nMk/vITQEybyF+/HeWfGjM4HkqyTZn8dfRUBiB IE+IkX0rIvWxAQpQZKfiPzOHafyoDn2TZc5KQgnk4P6MSlYPYvfWeWumQbm6tUMb3svR cDolNP/dZto7TPNyhK3FkXi3clZbcUPOkqiD9rpS9luP9lXK6A++YFQpfcMM7gzufgrR FswQ== X-Gm-Message-State: AOJu0YzejuVjyqoVr0HENkyRWtenSUnDFLjoLYp1aXNBpX0ycQiBSSgc RBc5zOAIceU+ZB2E3vaxKeSuKVHr61a+FwY48hbpWgW3w/wYiRry8s+qXOX5nWA= 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-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 /* QUP Registers */ @@ -1683,7 +1683,7 @@ static int qup_i2c_probe(struct platform_device *pdev) } } - 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 = &qup_i2c_algo; qup->adap.quirks = &qup_i2c_quirks; is_qup_v1 = true;