All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@intel.com>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/opregion: remove unused lid_state
Date: Thu, 18 Jan 2024 11:36:42 +0200	[thread overview]
Message-ID: <87jzo7oudx.fsf@intel.com> (raw)
In-Reply-To: <ZafMMXiOlr3H30o4@intel.com>

On Wed, 17 Jan 2024, Ville Syrjälä <ville.syrjala@linux.intel.com> wrote:
> On Wed, Jan 17, 2024 at 02:25:46PM +0200, Jani Nikula wrote:
>> Not sure if lid_state has ever been used, but at least not for a long
>> time. Remove it.
>
> It was probably used when we had that disgusting lid notifier
> thing, but that got killed some years ago.
>
>> 
>> Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
>> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
>
> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>

Thanks, pushed.

BR,
Jani.

>
>> ---
>>  drivers/gpu/drm/i915/display/intel_opregion.c | 2 --
>>  1 file changed, 2 deletions(-)
>> 
>> diff --git a/drivers/gpu/drm/i915/display/intel_opregion.c b/drivers/gpu/drm/i915/display/intel_opregion.c
>> index 3f5a20f9153e..f242bb320610 100644
>> --- a/drivers/gpu/drm/i915/display/intel_opregion.c
>> +++ b/drivers/gpu/drm/i915/display/intel_opregion.c
>> @@ -266,7 +266,6 @@ struct intel_opregion {
>>  	void *vbt_firmware;
>>  	const void *vbt;
>>  	u32 vbt_size;
>> -	u32 *lid_state;
>>  	struct work_struct asle_work;
>>  	struct notifier_block acpi_notifier;
>>  };
>> @@ -958,7 +957,6 @@ int intel_opregion_setup(struct drm_i915_private *dev_priv)
>>  		goto err_out;
>>  	}
>>  	opregion->header = base;
>> -	opregion->lid_state = base + ACPI_CLID;
>>  
>>  	drm_dbg(&dev_priv->drm, "ACPI OpRegion version %u.%u.%u\n",
>>  		opregion->header->over.major,
>> -- 
>> 2.39.2

-- 
Jani Nikula, Intel

  reply	other threads:[~2024-01-18  9:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-17 12:25 [PATCH] drm/i915/opregion: remove unused lid_state Jani Nikula
2024-01-17 12:46 ` Ville Syrjälä
2024-01-18  9:36   ` Jani Nikula [this message]
2024-01-17 14:10 ` ✓ Fi.CI.BAT: success for " Patchwork
2024-01-17 17:44 ` ✗ Fi.CI.IGT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87jzo7oudx.fsf@intel.com \
    --to=jani.nikula@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.