Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c1a327c4 authored by Alexander Shishkin's avatar Alexander Shishkin Committed by Greg Kroah-Hartman
Browse files

intel_th: gth: Remove commented-out code



There's a commented-out function in the GTH driver that's a leftover
from previous versions of the driver, where we tried to inherit the
pre-existing configuration, which didn't prove to be a sound idea.

This patch removes the function. No functional changes.

Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 993c7f11
Loading
Loading
Loading
Loading
+0 −18
Original line number Diff line number Diff line
@@ -146,24 +146,6 @@ gth_master_set(struct gth_device *gth, unsigned int master, int port)
	iowrite32(val, gth->base + reg);
}

/*static int gth_master_get(struct gth_device *gth, unsigned int master)
{
	unsigned int reg = REG_GTH_SWDEST0 + ((master >> 1) & ~3u);
	unsigned int shift = (master & 0x7) * 4;
	u32 val;

	if (master >= 256) {
		reg = REG_GTH_GSWTDEST;
		shift = 0;
	}

	val = ioread32(gth->base + reg);
	val &= (0xf << shift);
	val >>= shift;

	return val ? val & 0x7 : -1;
	}*/

static ssize_t master_attr_show(struct device *dev,
				struct device_attribute *attr,
				char *buf)