linux/drivers/gpu/drm/mgag200/mgag200_ddc.h
Thomas Zimmermann f2e9952449 drm/mgag200: Allocate instance of struct mga_i2c_chan dynamically
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
2024-05-17 17:20:08 +02:00

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