From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Thu, 8 Apr 2021 10:29:12 +0800 Subject: [PATCH 01/17] pci: Use const for pci_find_device_id() etc. In-Reply-To: <20210407043228.2268429-2-sjg@chromium.org> References: <20210407043228.2268429-1-sjg@chromium.org> <20210407043228.2268429-2-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Apr 7, 2021 at 12:32 PM Simon Glass wrote: > > These functions don't modify the device-ID struct that is passed in, so > mark the argument as const, so the data structure can be declared that > way. This allows it to be placed in the rodata section. > > Signed-off-by: Simon Glass > --- > > drivers/pci/pci-uclass.c | 6 +++--- > include/pci.h | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) > Reviewed-by: Bin Meng