Re: [PATCH 1/8] card: Add a method to retrieve the device minor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

On 06.08.2020 5:17, Laurent Pinchart wrote:

The device minor number is needed to access the debugfs directory
corresponding to the device. Make it available to users through a
get_minor() method on the Card object.

   Didn't you call it dev_minor() below?

Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx>
[...]
diff --git a/kms++/inc/kms++/card.h b/kms++/inc/kms++/card.h
index 5c1cf7cfcedc..0a11747f7985 100644
--- a/kms++/inc/kms++/card.h
+++ b/kms++/inc/kms++/card.h
@@ -35,6 +35,7 @@ public:
  	Card& operator=(const Card& other) = delete;
int fd() const { return m_fd; }
+	unsigned int dev_minor() const { return m_minor; }
void drop_master(); @@ -84,7 +85,9 @@ private:
  	std::vector<Framebuffer*> m_framebuffers;
int m_fd;
+	unsigned int m_minor;
  	bool m_is_master;
+	std::string m_device;
bool m_has_atomic;
  	bool m_has_universal_planes;
[...]

MBR, Sergei



[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux