diff options
| author | Benjamin Szőke <egyszeregy@freemail.hu> | 2024-06-03 11:15:58 +0200 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2024-10-03 20:05:16 +0200 |
| commit | 231bb9b4c42398db3114c087ba39ba00c4b7ac2c (patch) | |
| tree | b9792c52a43595b031d35f6ce429395b19dc9eab /drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h | |
| parent | docs/gpu: ci: update flake tests requirements (diff) | |
| download | linux-231bb9b4c42398db3114c087ba39ba00c4b7ac2c.tar.gz linux-231bb9b4c42398db3114c087ba39ba00c4b7ac2c.zip | |
drm/nouveau/i2c: rename aux.c and aux.h to auxch.c and auxch.h
The goal is to clean-up Linux repository from AUX file names, because
the use of such file names is prohibited on other operating systems
such as Windows, so the Linux repository cannot be cloned and
edited on them.
Signed-off-by: Benjamin Szőke <egyszeregy@freemail.hu>
Reviewed-by: Ben Skeggs <bskeggs@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240603091558.35672-1-egyszeregy@freemail.hu
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h')
| -rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h b/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h deleted file mode 100644 index f920eabf8628..000000000000 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.h +++ /dev/null @@ -1,46 +0,0 @@ -/* SPDX-License-Identifier: MIT */ -#ifndef __NVKM_I2C_AUX_H__ -#define __NVKM_I2C_AUX_H__ -#include "pad.h" - -static inline void -nvkm_i2c_aux_autodpcd(struct nvkm_i2c *i2c, int aux, bool enable) -{ - if (i2c->func->aux_autodpcd) - i2c->func->aux_autodpcd(i2c, aux, false); -} - -struct nvkm_i2c_aux_func { - bool address_only; - int (*xfer)(struct nvkm_i2c_aux *, bool retry, u8 type, - u32 addr, u8 *data, u8 *size); - int (*lnk_ctl)(struct nvkm_i2c_aux *, int link_nr, int link_bw, - bool enhanced_framing); -}; - -int nvkm_i2c_aux_ctor(const struct nvkm_i2c_aux_func *, struct nvkm_i2c_pad *, - int id, struct nvkm_i2c_aux *); -int nvkm_i2c_aux_new_(const struct nvkm_i2c_aux_func *, struct nvkm_i2c_pad *, - int id, struct nvkm_i2c_aux **); -void nvkm_i2c_aux_del(struct nvkm_i2c_aux **); -void nvkm_i2c_aux_init(struct nvkm_i2c_aux *); -void nvkm_i2c_aux_fini(struct nvkm_i2c_aux *); -int nvkm_i2c_aux_xfer(struct nvkm_i2c_aux *, bool retry, u8 type, - u32 addr, u8 *data, u8 *size); - -int g94_i2c_aux_new_(const struct nvkm_i2c_aux_func *, struct nvkm_i2c_pad *, - int, u8, struct nvkm_i2c_aux **); - -int g94_i2c_aux_new(struct nvkm_i2c_pad *, int, u8, struct nvkm_i2c_aux **); -int g94_i2c_aux_xfer(struct nvkm_i2c_aux *, bool, u8, u32, u8 *, u8 *); -int gf119_i2c_aux_new(struct nvkm_i2c_pad *, int, u8, struct nvkm_i2c_aux **); -int gm200_i2c_aux_new(struct nvkm_i2c_pad *, int, u8, struct nvkm_i2c_aux **); - -#define AUX_MSG(b,l,f,a...) do { \ - struct nvkm_i2c_aux *_aux = (b); \ - nvkm_##l(&_aux->pad->i2c->subdev, "aux %04x: "f"\n", _aux->id, ##a); \ -} while(0) -#define AUX_ERR(b,f,a...) AUX_MSG((b), error, f, ##a) -#define AUX_DBG(b,f,a...) AUX_MSG((b), debug, f, ##a) -#define AUX_TRACE(b,f,a...) AUX_MSG((b), trace, f, ##a) -#endif |
