[PATCH] drm/crtc: Add a helper func to get a registered crtc from its index

2015-09-11 Thread Xinliang Liu
On 10 September 2015 at 17:46, Daniel Vetter wrote: > On Thu, Sep 10, 2015 at 04:07:16PM +0800, Xinliang Liu wrote: > > On 25 August 2015 at 17:36, Daniel Vetter wrote: > > Hi Daniel, > > Thank you very much for reply. Sorry, I just come back from vacation. > > Very happy that you have a good id

[PATCH] drm/crtc: Add a helper func to get a registered crtc from its index

2015-09-11 Thread Xinliang Liu
On 26 August 2015 at 19:04, Thierry Reding wrote: > On Tue, Aug 25, 2015 at 11:36:18AM +0200, Daniel Vetter wrote: > > On Tue, Aug 25, 2015 at 11:13:51AM +0800, Xinliang Liu wrote: > > > This patch add a helper func to get a registered crtc from its index. > > > In some case, where we know the cr

[PATCH] drm/crtc: Add a helper func to get a registered crtc from its index

2015-09-10 Thread Xinliang Liu
On 25 August 2015 at 17:36, Daniel Vetter wrote: Hi Daniel, Thank you very much for reply. Sorry, I just come back from vacation. Very happy that you have a good idea to solve the mess. Looking forward to see your patch soon! On Tue, Aug 25, 2015 at 11:13:51AM +0800, Xinliang Liu wrote: > > This

[PATCH] drm/crtc: Add a helper func to get a registered crtc from its index

2015-09-10 Thread Daniel Vetter
On Thu, Sep 10, 2015 at 04:07:16PM +0800, Xinliang Liu wrote: > On 25 August 2015 at 17:36, Daniel Vetter wrote: > Hi Daniel, > Thank you very much for reply. Sorry, I just come back from vacation. > Very happy that you have a good idea to solve the mess. > Looking forward to see your patch soon!

[PATCH] drm/crtc: Add a helper func to get a registered crtc from its index

2015-08-26 Thread Thierry Reding
On Tue, Aug 25, 2015 at 11:36:18AM +0200, Daniel Vetter wrote: > On Tue, Aug 25, 2015 at 11:13:51AM +0800, Xinliang Liu wrote: > > This patch add a helper func to get a registered crtc from its index. > > In some case, where we know the crtc's index and we want to know the > > crtc too. > > > > Fo

[PATCH] drm/crtc: Add a helper func to get a registered crtc from its index

2015-08-25 Thread Daniel Vetter
On Tue, Aug 25, 2015 at 11:13:51AM +0800, Xinliang Liu wrote: > This patch add a helper func to get a registered crtc from its index. > In some case, where we know the crtc's index and we want to know the > crtc too. > > For example, the enable_vblank func of struct drm_driver: > In the implementa

[PATCH] drm/crtc: Add a helper func to get a registered crtc from its index

2015-08-25 Thread Xinliang Liu
This patch add a helper func to get a registered crtc from its index. In some case, where we know the crtc's index and we want to know the crtc too. For example, the enable_vblank func of struct drm_driver: In the implementation of this func, we know the index of the crtc but we want to know the c