soc/intel/broadwell: Drop `config_t` typedef
The typedef needlessly hides the actual type of the variables. Tested with BUILD_TIMELESS=1, Purism Librem 13 v1 remains identical. Change-Id: I58a58cd402ec679960f460e80b37ff2afb8e3974 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55492 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
2ec084fffd
commit
91260932e0
|
@ -33,6 +33,4 @@ struct soc_intel_broadwell_config {
|
||||||
struct i915_gpu_controller_info gfx;
|
struct i915_gpu_controller_info gfx;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct soc_intel_broadwell_config config_t;
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -284,7 +284,7 @@ int gtt_poll(u32 reg, u32 mask, u32 value)
|
||||||
|
|
||||||
static void gma_setup_panel(struct device *dev)
|
static void gma_setup_panel(struct device *dev)
|
||||||
{
|
{
|
||||||
config_t *conf = config_of(dev);
|
struct soc_intel_broadwell_config *conf = config_of(dev);
|
||||||
const struct i915_gpu_panel_config *panel_cfg = &conf->panel_cfg;
|
const struct i915_gpu_panel_config *panel_cfg = &conf->panel_cfg;
|
||||||
u32 reg32;
|
u32 reg32;
|
||||||
|
|
||||||
|
@ -361,7 +361,7 @@ static void gma_setup_panel(struct device *dev)
|
||||||
static int igd_get_cdclk_haswell(u32 *const cdsel, int *const inform_pc,
|
static int igd_get_cdclk_haswell(u32 *const cdsel, int *const inform_pc,
|
||||||
struct device *const dev)
|
struct device *const dev)
|
||||||
{
|
{
|
||||||
const config_t *const conf = config_of(dev);
|
const struct soc_intel_broadwell_config *const conf = config_of(dev);
|
||||||
int cdclk = conf->cdclk;
|
int cdclk = conf->cdclk;
|
||||||
|
|
||||||
/* Check for ULX GT1 or GT2 */
|
/* Check for ULX GT1 or GT2 */
|
||||||
|
@ -396,7 +396,7 @@ static int igd_get_cdclk_broadwell(u32 *const cdsel, int *const inform_pc,
|
||||||
struct device *const dev)
|
struct device *const dev)
|
||||||
{
|
{
|
||||||
static const u32 cdsel_by_cdclk[] = { 0, 2, 0, 1, 3 };
|
static const u32 cdsel_by_cdclk[] = { 0, 2, 0, 1, 3 };
|
||||||
const config_t *const conf = config_of(dev);
|
const struct soc_intel_broadwell_config *const conf = config_of(dev);
|
||||||
int cdclk = conf->cdclk;
|
int cdclk = conf->cdclk;
|
||||||
|
|
||||||
/* Check for ULX */
|
/* Check for ULX */
|
||||||
|
|
Loading…
Reference in New Issue