soc/intel: Use config_of()
Change-Id: I0727a6b327410197cf32f598d1312737744386b3 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/34328 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: David Guckian
This commit is contained in:
@ -298,7 +298,7 @@ static int gtt_poll(u32 reg, u32 mask, u32 value)
|
||||
|
||||
static void igd_setup_panel(struct device *dev)
|
||||
{
|
||||
config_t *conf = dev->chip_info;
|
||||
config_t *conf = config_of(dev);
|
||||
u32 reg32;
|
||||
|
||||
/* Setup Digital Port Hotplug */
|
||||
@ -349,7 +349,7 @@ static void igd_setup_panel(struct device *dev)
|
||||
static int igd_get_cdclk_haswell(u32 *const cdsel, int *const inform_pc,
|
||||
struct device *const dev)
|
||||
{
|
||||
const config_t *const conf = dev->chip_info;
|
||||
const config_t *const conf = config_of(dev);
|
||||
int cdclk = conf->cdclk;
|
||||
|
||||
/* Check for ULX GT1 or GT2 */
|
||||
@ -383,7 +383,7 @@ static int igd_get_cdclk_broadwell(u32 *const cdsel, int *const inform_pc,
|
||||
struct device *const dev)
|
||||
{
|
||||
static const u32 cdsel_by_cdclk[] = { 0, 2, 0, 1, 3 };
|
||||
const config_t *const conf = dev->chip_info;
|
||||
const config_t *const conf = config_of(dev);
|
||||
int cdclk = conf->cdclk;
|
||||
|
||||
/* Check for ULX */
|
||||
|
Reference in New Issue
Block a user