hotplug_trigger, dig_hotplug_reg);
spin_lock(&dev_priv->irq_lock);
- for (i = 1; i < HPD_NUM_PINS; i++) {
+ for_each_hpd_pin(i) {
bool long_hpd;
if (!(hpd[i] & hotplug_trigger))
queue_dig = true;
}
- for (i = 1; i < HPD_NUM_PINS; i++) {
+ for_each_hpd_pin(i) {
if (hpd[i] & hotplug_trigger &&
dev_priv->hotplug.stats[i].state == HPD_DISABLED) {
/*
intel_runtime_pm_get(dev_priv);
spin_lock_irq(&dev_priv->irq_lock);
- for (i = (HPD_NONE + 1); i < HPD_NUM_PINS; i++) {
+ for_each_hpd_pin(i) {
struct drm_connector *connector;
if (dev_priv->hotplug.stats[i].state != HPD_DISABLED)
struct drm_connector *connector;
int i;
- for (i = 1; i < HPD_NUM_PINS; i++) {
+ for_each_hpd_pin(i) {
dev_priv->hotplug.stats[i].count = 0;
dev_priv->hotplug.stats[i].state = HPD_ENABLED;
}