mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

Allocate instances of struct mga_i2c_chan in mgag200_ddc_create() and return a pointer to the contained i2c adapter. The callers of the function are now independent from struct mga_i2c_chan. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240513125620.6337-5-tzimmermann@suse.de
11 lines
211 B
C
11 lines
211 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#ifndef __MGAG200_DDC_H__
|
|
#define __MGAG200_DDC_H__
|
|
|
|
struct i2c_adapter;
|
|
struct mga_device;
|
|
|
|
struct i2c_adapter *mgag200_ddc_create(struct mga_device *mdev);
|
|
|
|
#endif
|