mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
The Tegra124 SPI slave driver declares a prototype for the function tegra_spi_slave_register_callback() that does not exist. The correct function name is tegra124_spi_slave_register_callback() and so fix the prototype accordingly. Move the prototype to an actual header because this is the correct place for defining prototypes for other drivers to reference. This was caught by enabling the compiler flag -Wmissing-prototype. Bug 4404965 Change-Id: I765723d0a5ed6369784e5f6c480a6f03500659f3 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3027487 Reviewed-by: Brad Griffis <bgriffis@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
18 lines
462 B
C
18 lines
462 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* SPDX-FileCopyrightText: Copyright (C) 2023 NVIDIA CORPORATION. All rights reserved.
|
|
*/
|
|
|
|
#ifndef __LINUX_SPI_TEGRA124_SLAVE_H
|
|
#define __LINUX_SPI_TEGRA124_SLAVE_H
|
|
|
|
#include <linux/spi/spi.h>
|
|
|
|
typedef int (*spi_callback)(void *client_data);
|
|
|
|
int tegra124_spi_slave_register_callback(struct spi_device *spi,
|
|
spi_callback func_ready,
|
|
spi_callback func_isr,
|
|
void *client_data);
|
|
#endif
|