From patchwork Wed Oct 25 18:42:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 738035 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A5525C0032E for ; Wed, 25 Oct 2023 18:50:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229796AbjJYSue (ORCPT ); Wed, 25 Oct 2023 14:50:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjJYSud (ORCPT ); Wed, 25 Oct 2023 14:50:33 -0400 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8D5F111; Wed, 25 Oct 2023 11:50:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698259832; x=1729795832; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Tyuad4CLXZh+vdA2dSWx/kiizQs1zXdiTr0LZZF2EVE=; b=Tavz6p3mOcXodSrlTzlQQsL7v68RUYygves+XyA5ItERHHw7N7UT8uVS z/yv6ITjqkFqZrlKbw+G2oSY6HOE7F/o6nSPsnpvnYWZvdNZmVvcx05I6 wgsYJMRluRqcGjdtEjbnKNg7GA93eN5lhjbkjAcJ0IppcPDhKGJJcv3hn QP5jXN9jdF+NFfWb7rCNf1fG/br5EHhv0mZ11FFpafxtiHDg9XCj9pZ+3 9Q/XVXLbEsXQYxQXBDHUwdlmak37vV0t2MjnLBEIrN6WISU79zZxgXk+6 JgDSOQnclibuPL+ImwRBzWZ1hR4SxbDBRrE0jmklTVmRLzzF8jysTSFUm Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="176167" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="176167" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 11:50:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10874"; a="902642575" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="902642575" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 25 Oct 2023 11:48:03 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id C8283125; Wed, 25 Oct 2023 21:43:01 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Greg Kroah-Hartman , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , "Rafael J. Wysocki" , Rob Herring Subject: [PATCH v1 0/3] gpio: mmio: Make driver agnostic Date: Wed, 25 Oct 2023 21:42:56 +0300 Message-Id: <20231025184259.250588-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Driver uses so far some OF APIs when generic fwnode ones can be used. Replace these APIs accordingly. Note, this will help to clean up OF headers even more. Andy Shevchenko (3): device property: Implement device_is_big_endian() gpio: mmio: Make use of device properties gpio: mmio: Clean up headers drivers/gpio/gpio-mmio.c | 53 +++++++++++++++------------------------- include/linux/property.h | 26 ++++++++++++++++++++ 2 files changed, 46 insertions(+), 33 deletions(-) Reviewed-by: Linus Walleij