From mboxrd@z Thu Jan 1 00:00:00 1970 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 70C19C25B48 for ; Thu, 26 Oct 2023 05:25:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233203AbjJZFZl (ORCPT ); Thu, 26 Oct 2023 01:25:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233231AbjJZFZk (ORCPT ); Thu, 26 Oct 2023 01:25:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99DF210E; Wed, 25 Oct 2023 22:25:38 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DEDFC433C7; Thu, 26 Oct 2023 05:25:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1698297938; bh=HDy4nPUhUEA+7ki5tSQI5vsOl44X4cw66wI/6D9BcvY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MaKkc1JZ0ZYD96p07p/5Ssa+dZVPhvisnyV2/NE5tPFyc1uiC4vuDJIwsP+fQZGO5 aaDk8bI56zM5vaPDRmWFcSAVEoUF967GD2CXTzXDi+S7eJ95m2kvuNoq4ehY7lm3Fi FtmL/qrEPHWiDp8UNYI/CbsVVw13ZWr12nf83lOs= Date: Thu, 26 Oct 2023 07:25:35 +0200 From: Greg Kroah-Hartman To: Andy Shevchenko Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , "Rafael J. Wysocki" , Rob Herring Subject: Re: [PATCH v1 1/3] device property: Implement device_is_big_endian() Message-ID: <2023102624-moonshine-duller-3043@gregkh> References: <20231025184259.250588-1-andriy.shevchenko@linux.intel.com> <20231025184259.250588-2-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231025184259.250588-2-andriy.shevchenko@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Wed, Oct 25, 2023 at 09:42:57PM +0300, Andy Shevchenko wrote: > Some users want to use the struct device pointer to see if the > device is big endian in terms of Open Firmware specifications, > i.e. if it has a "big-endian" property, or if the kernel was > compiled for BE *and* the device has a "native-endian" property. > > Provide inline helper for the users. > > Signed-off-by: Andy Shevchenko > --- > include/linux/property.h | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) Acked-by: Greg Kroah-Hartman